find('php'); $vendorDir = __DIR__ . '/../Fixtures/PluginDir/TestPlugin/vendor'; $installFile = __DIR__ . '/installer'; $composer = __DIR__ . '/composer.phar'; $fs->remove(array($composer, $installFile, $vendorDir)); if (null === $php) { $this->markTestSkipped('Unable to find PHP executable.'); } $setupMock = $this->getMockBuilder('Alchemy\Phrasea\Utilities\ComposerSetup') ->disableOriginalConstructor() ->getMock(); $installer = new ComposerInstaller(new ComposerSetup(new Guzzle()), __DIR__, $php); $installer->install(__DIR__ . '/../Fixtures/PluginDir/TestPlugin'); $this->assertFileExists($composer); unlink($composer); $this->assertFileNotExists($installFile); $this->assertFileExists($vendorDir); $fs->remove($vendorDir); } }