Esempio n. 1
0
 /**
  * Clean up directory structure after each test
  */
 public function tearDown()
 {
     if (is_dir($this->path)) {
         $this->rmdir($this->path);
     }
     parent::tearDown();
 }
Esempio n. 2
0
 /**
  * Drop the test database after each test
  */
 public function tearDown()
 {
     if (extension_loaded('mongo') && class_exists('MongoClient')) {
         $client = new MongoClient();
         $client->selectDB($this->databaseName)->drop();
     }
     parent::tearDown();
 }
Esempio n. 3
0
 /**
  * Reset PDO instance after each test
  */
 public function tearDown()
 {
     $this->pdo = null;
     parent::tearDown();
 }