Fix php5.3 syntax
parent
626358695c
commit
ff14762c06
|
@ -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
|
||||||
tabverticaltab' . "\0",
|
tabverticaltab' . "\0",
|
||||||
],
|
),
|
||||||
],
|
),
|
||||||
], $rawData);
|
), $rawData);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue