assertInstanceOf('ORM',$x); } function testormloaddn() { // @todo It would be nice if we auto connect as required. $y = LDAP::factory('auth'); $y->connect(); $y = LDAP::factory('user'); $y->connect(); $x = ORM::factory('LDAP','cn=Bart Simpson,ou=People,o=Simpsons'); $this->assertInstanceOf('ORM',$x); } function testormdnval() { // @todo It would be nice if we auto connect as required. $y = LDAP::factory('auth'); $y->connect(); $y = LDAP::factory('user'); $y->connect(); $x = ORM::factory('LDAP','cn=Bart Simpson,ou=People,o=Simpsons'); $this->assertEquals($x->cn['0'],'Bart Simpson'); } }