diff --git a/tests/Composer/Test/Repository/PlatformRepositoryTest.php b/tests/Composer/Test/Repository/PlatformRepositoryTest.php index 90674d4a3..aa51a2fc6 100644 --- a/tests/Composer/Test/Repository/PlatformRepositoryTest.php +++ b/tests/Composer/Test/Repository/PlatformRepositoryTest.php @@ -49,7 +49,8 @@ class PlatformRepositoryTest extends TestCase { $this->markTestSkipped('Test does not run on Windows'); return; } - $hhvm = (new ExecutableFinder())->find('hhvm'); + $finder = new ExecutableFinder(); + $hhvm = $finder->find('hhvm'); if ($hhvm === null) { $this->markTestSkipped('HHVM is not installed'); }