소스 검색

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