1
0
Fork 0
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:
Jordi Boggiano 2020-02-07 23:21:48 +01:00
parent 589abb06a3
commit 21ab2f85bb
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
2 changed files with 7 additions and 2 deletions

View file

@ -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);

View file

@ -309,7 +309,11 @@ class ArchivableFilesFinderTest extends TestCase
protected function getArchivedFiles($command)
{
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');