Example #1
0
 public function _after(TestCase $test)
 {
     $this->resetApplication();
     if ($this->testCase->cleanUpInsertedRecords) {
         $this->cleanUpInsertedRecords();
     }
     $this->fixtureManager->unload($this->testCase);
     if ($this->testCase->dropTables) {
         $this->fixtureManager->shutDown();
     }
 }
 /**
  * Unloads fixtures from the test case.
  *
  * @param \PHPUnit_Framework_Test $test The test case
  * @param float $time current time
  * @return void
  */
 public function endTest(PHPUnit_Framework_Test $test, $time)
 {
     if ($test instanceof TestCase) {
         $this->_fixtureManager->unload($test);
     }
 }