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 tearDown() { $this->_cleanupLDAPServer(); parent::tearDown(); }
protected function setUp() { parent::setUp(); $this->_schema = $this->_getLDAP()->getSchema(); }