setUp() protected méthode

Setup function.
protected setUp ( ) : NULL.
Résultat NULL.
Exemple #1
0
 /**
  * Set up testing.
  *
  * @return NULL
  */
 protected function setUp()
 {
     parent::setUp();
     $this->server = $this->getKolabMockServer();
     $users = $this->validUsers();
     foreach ($users as $user) {
         $result = $this->server->add($user[0]);
     }
 }
Exemple #2
0
 /**
  * Set up testing.
  *
  * @return NULL
  */
 public function setUp()
 {
     parent::setUp();
     if (!extension_loaded('ldap') && !@dl('ldap.' . PHP_SHLIB_SUFFIX)) {
         $this->markTestSuiteSkipped('Ldap extension is missing!');
     }
     if (!class_exists('Horde_Ldap')) {
         $this->markTestSuiteSkipped('PEAR package Horde_Ldap is not installed!');
     }
     $this->markTestIncomplete('Needs to be fixed');
     $this->initializeEnvironments();
     $this->servers = $this->getKolabServers();
     foreach ($this->servers as $server) {
         $this->addBasicUsersToServer($server);
     }
 }
Exemple #3
0
 /**
  * Set up a dummy db object that will not be used during the
  * tests. We just need it so that PHP does not complain about the
  * inability to refernce the storage class.
  *
  * @return NULL
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_dummydb = new DummyDB();
 }
Exemple #4
0
 /**
  * Set up testing.
  *
  * @return NULL
  */
 protected function setUp()
 {
     parent::setUp();
     $this->server = $this->getKolabMockServer();
 }
 /**
  * Set up testing.
  *
  * @return NULL
  */
 protected function setUp()
 {
     parent::setUp();
     $this->initializeEnvironments();
     $this->servers = $this->getKolabServers();
 }