Example #1
0
 protected function tearDown()
 {
     if (!constant('TESTS_ZEND_LDAP_ONLINE_ENABLED')) {
         return;
     }
     foreach ($this->getLDAP()->getBaseNode()->searchChildren('objectClass=*') as $child) {
         $this->getLDAP()->delete($child->getDn(), true);
     }
     parent::tearDown();
 }
Example #2
0
 protected function tearDown()
 {
     if (!constant('TESTS_ZEND_LDAP_ONLINE_ENABLED')) {
         return;
     }
     if ($this->getLDAP()->exists($this->newDn)) {
         $this->getLDAP()->delete($this->newDn, false);
     }
     if ($this->getLDAP()->exists($this->orgDn)) {
         $this->getLDAP()->delete($this->orgDn, false);
     }
     if ($this->getLDAP()->exists($this->orgSubTreeDn)) {
         $this->getLDAP()->delete($this->orgSubTreeDn, true);
     }
     if ($this->getLDAP()->exists($this->newSubTreeDn)) {
         $this->getLDAP()->delete($this->newSubTreeDn, true);
     }
     if ($this->getLDAP()->exists($this->targetSubTreeDn)) {
         $this->getLDAP()->delete($this->targetSubTreeDn, true);
     }
     $this->cleanupLDAPServer();
     parent::tearDown();
 }
Example #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->schema = $this->getLDAP()->getSchema();
 }
Example #4
0
 protected function tearDown()
 {
     $this->cleanupLDAPServer();
     parent::tearDown();
 }