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(); }
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(); }
protected function setUp() { parent::setUp(); $this->schema = $this->getLDAP()->getSchema(); }
protected function tearDown() { $this->cleanupLDAPServer(); parent::tearDown(); }