Пример #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();
 }
Пример #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();
 }
Пример #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->schema = $this->getLDAP()->getSchema();
 }
Пример #4
0
 protected function tearDown()
 {
     $this->cleanupLDAPServer();
     parent::tearDown();
 }