protected function tearDown()
 {
     foreach ($this->_getLdap()->getBaseNode()->searchChildren('objectClass=*') as $child) {
         $this->_getLdap()->delete($child->getDn(), true);
     }
     parent::tearDown();
 }
Example #2
0
 protected function tearDown()
 {
     $this->_cleanupLdapServer();
     parent::tearDown();
 }
 protected function tearDown()
 {
     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 #4
0
 protected function setUp()
 {
     parent::setUp();
     $this->_schema = $this->_getLdap()->getSchema();
 }