Replace usage of brackets by legacy array notation
parent
4ab123291d
commit
dfccb686ce
|
@ -62,7 +62,7 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase
|
|||
$config = new Config;
|
||||
$config->merge(array('repositories' => array('packagist' => false)));
|
||||
$guesser = new VersionGuesser($executor, new VersionParser());
|
||||
$version = $guesser->guessVersion($config, []);
|
||||
$version = $guesser->guessVersion($config, array());
|
||||
|
||||
$this->assertEquals("dev-$commitHash", $version);
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase
|
|||
$config = new Config;
|
||||
$config->merge(array('repositories' => array('packagist' => false)));
|
||||
$guesser = new VersionGuesser($executor, new VersionParser());
|
||||
$version = $guesser->guessVersion($config, []);
|
||||
$version = $guesser->guessVersion($config, array());
|
||||
|
||||
$this->assertEquals("2.0.5.0-alpha2", $version);
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase
|
|||
$config = new Config;
|
||||
$config->merge(array('repositories' => array('packagist' => false)));
|
||||
$guesser = new VersionGuesser($executor, new VersionParser());
|
||||
$version = $guesser->guessVersion($config, []);
|
||||
$version = $guesser->guessVersion($config, array());
|
||||
|
||||
$this->assertEquals("dev-foo", $version);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue