Pārlūkot izejas kodu

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

Leszek 14 gadi atpakaļ
vecāks
revīzija
05a105f641

+ 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}'));