public function __construct() { parent::__construct(); $this->setName("Authentication"); $this->addTest(ezcAuthenticationGeneralTest::suite()); $this->addTest(ezcAuthenticationSessionTest::suite()); $this->addTest(ezcAuthenticationGroupTest::suite()); $this->addTest(ezcAuthenticationGroupMultipleTest::suite()); $this->addTest(ezcAuthenticationHtpasswdTest::suite()); $this->addTest(ezcAuthenticationLdapTest::suite()); $this->addTest(ezcAuthenticationOpenidTest::suite()); $this->addTest(ezcAuthenticationOpenidFileStoreTest::suite()); $this->addTest(ezcAuthenticationTokenTest::suite()); $this->addTest(ezcAuthenticationTypekeyTest::suite()); $this->addTest(ezcAuthenticationBignumTest::suite()); $this->addTest(ezcAuthenticationUrlTest::suite()); }
/** * Test for issue #12992 (case-sensitivity problems for LDAP registerFetchData()). */ public function testLdapFetchExtraDataSubdirectory() { $base = self::$base; self::$base = 'ou=Users,dc=foo,dc=bar'; $credentials = new ezcAuthenticationPasswordCredentials('johnny.doe', '12345'); $ldap = new ezcAuthenticationLdapInfo(self::$host, self::$format, self::$base, self::$port); $authentication = new ezcAuthentication($credentials); $filter = new ezcAuthenticationLdapFilter($ldap); $filter->registerFetchData(array('uid', 'displayName')); $authentication->addFilter($filter); $this->assertEquals(true, $authentication->run()); $expected = array('uid' => array('johnny.doe'), 'displayName' => array('Johnny Doe')); $this->assertEquals($expected, $filter->fetchData()); self::$base = $base; }