diff --git a/tests/Composer/Test/InstallerTest.php b/tests/Composer/Test/InstallerTest.php index 8be804206..3526db5c1 100644 --- a/tests/Composer/Test/InstallerTest.php +++ b/tests/Composer/Test/InstallerTest.php @@ -50,7 +50,7 @@ class InstallerTest extends TestCase public function tearDown() { chdir($this->prevCwd); - if (is_dir($this->tempComposerHome)) { + if (isset($this->tempComposerHome) && is_dir($this->tempComposerHome)) { $fs = new Filesystem; $fs->removeDirectory($this->tempComposerHome); }