Преглед на файлове

[Routing] added tearDown with cleanup the file system tmp directory

Leszek преди 14 години
родител
ревизия
05a105f641
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      tests/Symfony/Tests/Component/Routing/Generator/Dumper/PhpGeneratorDumperTest.php

+ 7 - 0
tests/Symfony/Tests/Component/Routing/Generator/Dumper/PhpGeneratorDumperTest.php

@@ -42,6 +42,13 @@ class PhpGeneratorDumperTest extends \PHPUnit_Framework_TestCase
         @unlink($this->testTmpFilepath);
     }
 
+    protected function tearDown()
+    {
+        parent::tearDown();
+        
+        @unlink($this->testTmpFilepath);
+    }
+
     public function testDumpWithRoutes()
     {
         $this->routeCollection->add('Test', new Route('/testing/{foo}'));