Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 protected function tearDown()
 {
     $this->_cleanupLDAPServer();
     parent::tearDown();
 }
Exemplo n.º 4
0
 protected function setUp()
 {
     parent::setUp();
     $this->_schema = $this->_getLDAP()->getSchema();
 }