public function tearDown()
 {
     if (file_exists($this->jsonDocsFile())) {
         unlink($this->jsonDocsFile());
     }
     parent::tearDown();
 }
Example #2
0
 public function tearDown()
 {
     DB::connection()->rollBack();
     //rollback the transaction so the test case can be rerun without duplicate key exceptions
     DB::connection()->setPdo(null);
     //close the pdo connection to `avoid too many connections` errors
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->app['db']->rollBack();
     $this->app['cache']->flush();
     parent::tearDown();
 }