From 909a679ab5e727a3fb27dfcabc4184aae93934fa Mon Sep 17 00:00:00 2001 From: Alexander Loutsenko Date: Mon, 14 Dec 2015 18:52:02 +0300 Subject: [PATCH] Filesystem is not needed as a property for CacheTest --- tests/Composer/Test/CacheTest.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/Composer/Test/CacheTest.php b/tests/Composer/Test/CacheTest.php index fe3e76dad..293064598 100644 --- a/tests/Composer/Test/CacheTest.php +++ b/tests/Composer/Test/CacheTest.php @@ -18,14 +18,9 @@ use Composer\Util\Filesystem; class CacheTest extends TestCase { private $files, $root, $finder, $cache; - /** - * @var Filesystem - */ - private $fs; public function setUp() { - $this->fs = new Filesystem; if (getenv('TRAVIS')) { $this->markTestSkipped('Test causes intermittent failures on Travis'); } @@ -56,7 +51,8 @@ class CacheTest extends TestCase protected function tearDown() { if (is_dir($this->root)) { - $this->fs->removeDirectory($this->root); + $fs = new Filesystem; + $fs->removeDirectory($this->root); } }