tearDown() protected method

This method is called after a test is executed.
protected tearDown ( ) : void
return void
コード例 #1
0
ファイル: BaseTestCase.php プロジェクト: mesour/dropdown
 public function tearDown()
 {
     parent::tearDown();
     if ($this->generateRandomString) {
         $this->randomStringGenerator->writeToPhpFile(__DIR__ . '/MockRandomStrings/DefaultTestRandomString.php', 'Mesour\\DropDownTests\\MockRandomStrings\\DefaultTestRandomString');
     }
 }
コード例 #2
0
 function tearDown()
 {
     parent::tearDown();
     if ($this->tempDir) {
         try {
             Files::removeDir($this->tempDir);
             $this->tempDir = false;
         } catch (\Exception $e) {
             throw new \Tester\TestCaseException("Could not remove temp directory {$this->tempDir}, there might be some files left inside.", 1, $e);
         }
     }
 }
コード例 #3
0
 protected function tearDown()
 {
     parent::tearDown();
     Mockery::close();
 }
コード例 #4
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->databaseTester->clearDatabase();
 }
コード例 #5
0
 protected function tearDown()
 {
     $this->lifeCycle->onTearDown();
     parent::tearDown();
 }