1
0
Fork 0

Fix 7.4 build

pull/8566/head
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)
{
$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');