Fix 7.4 build
parent
589abb06a3
commit
21ab2f85bb
|
@ -66,7 +66,8 @@ class RunScriptCommandTest extends TestCase
|
||||||
|
|
||||||
$ed->expects($this->once())
|
$ed->expects($this->once())
|
||||||
->method('dispatchScript')
|
->method('dispatchScript')
|
||||||
->with($scriptName, $expectedDevMode, array());
|
->with($scriptName, $expectedDevMode, array())
|
||||||
|
->willReturn(0);
|
||||||
|
|
||||||
$composer = $this->createComposerInstance();
|
$composer = $this->createComposerInstance();
|
||||||
$composer->setEventDispatcher($ed);
|
$composer->setEventDispatcher($ed);
|
||||||
|
|
|
@ -309,7 +309,11 @@ class ArchivableFilesFinderTest extends TestCase
|
||||||
|
|
||||||
protected function getArchivedFiles($command)
|
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 = new Process($command, $this->sources);
|
||||||
|
}
|
||||||
$process->run();
|
$process->run();
|
||||||
|
|
||||||
$archive = new \PharData($this->sources.'/archive.zip');
|
$archive = new \PharData($this->sources.'/archive.zip');
|
||||||
|
|
Loading…
Reference in New Issue