Author: Alexandru Stanoi
Date: 2007-05-07 09:37:03 +0200 (Mon, 07 May 2007)
New Revision: 5098
Log:
- Skip LDAP tests for now, until we install LDAP on a test server.
Modified:
trunk/Authentication/tests/filters/ldap/ldap_test.php
Modified: trunk/Authentication/tests/filters/ldap/ldap_test.php
===================================================================
--- trunk/Authentication/tests/filters/ldap/ldap_test.php 2007-05-07
07:36:43 UTC (rev 5097)
+++ trunk/Authentication/tests/filters/ldap/ldap_test.php 2007-05-07
07:37:03 UTC (rev 5098)
@@ -33,6 +33,19 @@
{
$this->markTestSkipped( "PHP must be compiled with --with-ldap." );
}
+ try
+ {
+ $credentials = new ezcAuthenticationPasswordCredentials(
'zhang.san', 'asdfgh' );
+ $ldap = new ezcAuthenticationLdapInfo( self::$host, self::$format,
self::$base, self::$port );
+ $authentication = new ezcAuthentication( $credentials );
+ $authentication->addFilter( new ezcAuthenticationLdapFilter( $ldap
) );
+ $authentication->run();
+ }
+ catch ( ezcAuthenticationLdapException $e )
+ {
+ // this will be changed later when we will have a test server with
LDAP
+ $this->markTestSkipped( "Cannot connect to LDAP. Probably you
didn't setup the LDAP enviroment." );
+ }
}
public function tearDown()
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components