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