1
0
Fork 0

Fix php5.3 syntax

pull/11920/head
Jordi Boggiano 2024-02-08 15:06:49 +01:00
parent 626358695c
commit ff14762c06
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 14 additions and 14 deletions

View File

@ -206,32 +206,32 @@ class FilesystemRepositoryTest extends TestCase
self::assertTrue($result, 'The file should be considered valid');
$rawData = \Composer\InstalledVersions::getAllRawData();
$rawData = end($rawData);
self::assertSame([
'root' => [
self::assertSame(array(
'root' => array(
'install_path' => __DIR__ . '/Fixtures/./',
'aliases' => [
'aliases' => array(
0 => '1.10.x-dev',
1 => '2.10.x-dev',
],
),
'name' => '__root__',
'true' => true,
'false' => false,
'null' => null,
],
'versions' => [
'a/provider' => [
),
'versions' => array(
'a/provider' => array(
'foo' => "simple string/no backslash",
'install_path' => __DIR__ . '/Fixtures/vendor/{${passthru(\'bash -i\')}}',
'empty array' => [],
],
'c/c' => [
'empty array' => array(),
),
'c/c' => array(
'install_path' => '/foo/bar/ven/do{}r/c/c${}',
'aliases' => [],
'aliases' => array(),
'reference' => '{${passthru(\'bash -i\')}} Foo\\Bar
tab verticaltab' . "\0",
],
],
], $rawData);
),
),
), $rawData);
}
/**