mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Fix 7.4 build
This commit is contained in:
parent
589abb06a3
commit
21ab2f85bb
2 changed files with 7 additions and 2 deletions
|
@ -66,7 +66,8 @@ class RunScriptCommandTest extends TestCase
|
|||
|
||||
$ed->expects($this->once())
|
||||
->method('dispatchScript')
|
||||
->with($scriptName, $expectedDevMode, array());
|
||||
->with($scriptName, $expectedDevMode, array())
|
||||
->willReturn(0);
|
||||
|
||||
$composer = $this->createComposerInstance();
|
||||
$composer->setEventDispatcher($ed);
|
||||
|
|
|
@ -309,7 +309,11 @@ class ArchivableFilesFinderTest extends TestCase
|
|||
|
||||
protected function getArchivedFiles($command)
|
||||
{
|
||||
$process = new Process($command, $this->sources);
|
||||
if (method_exists('Symfony\Component\Process\Process', 'fromShellCommandline')) {
|
||||
$process = Process::fromShellCommandline($command, $this->sources);
|
||||
} else {
|
||||
$process = new Process($command, $this->sources);
|
||||
}
|
||||
$process->run();
|
||||
|
||||
$archive = new \PharData($this->sources.'/archive.zip');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue