From c0f5a64e81e03d51ce9fd673c86c6f11d2f1d2c4 Mon Sep 17 00:00:00 2001 From: Nicole Cordes Date: Fri, 31 Mar 2017 17:09:04 +0200 Subject: [PATCH] Use long array sysntax for PHP 5.3 compatibility --- .../Test/Package/Version/VersionGuesserTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Composer/Test/Package/Version/VersionGuesserTest.php b/tests/Composer/Test/Package/Version/VersionGuesserTest.php index 3e37e67c1..f5a4497d9 100644 --- a/tests/Composer/Test/Package/Version/VersionGuesserTest.php +++ b/tests/Composer/Test/Package/Version/VersionGuesserTest.php @@ -163,7 +163,7 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase $commitHash = 'da53c52eddd5f32ffca64a7b3801bea'; $executor = $this->getMockBuilder('\\Composer\\Util\\ProcessExecutor') - ->setMethods(['execute']) + ->setMethods(array('execute')) ->disableArgumentCloning() ->disableOriginalConstructor() ->getMock(); @@ -181,9 +181,9 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase }); $config = new Config; - $config->merge(['repositories' => ['packagist' => false]]); + $config->merge(array('repositories' => array('packagist' => false))); $guesser = new VersionGuesser($config, $executor, new VersionParser()); - $versionData = $guesser->guessVersion([], 'dummy/path'); + $versionData = $guesser->guessVersion(array(), 'dummy/path'); $this->assertEquals("dev-$commitHash", $versionData['version']); } @@ -193,7 +193,7 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase $commitHash = 'da53c52eddd5f32ffca64a7b3801bea'; $executor = $this->getMockBuilder('\\Composer\\Util\\ProcessExecutor') - ->setMethods(['execute']) + ->setMethods(array('execute')) ->disableArgumentCloning() ->disableOriginalConstructor() ->getMock(); @@ -211,9 +211,9 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase }); $config = new Config; - $config->merge(['repositories' => ['packagist' => false]]); + $config->merge(array('repositories' => array('packagist' => false))); $guesser = new VersionGuesser($config, $executor, new VersionParser()); - $versionData = $guesser->guessVersion([], 'dummy/path'); + $versionData = $guesser->guessVersion(array(), 'dummy/path'); $this->assertEquals("dev-$commitHash", $versionData['version']); }