Skip to content

Commit

Permalink
run php-cs-fixer using latest rules
Browse files Browse the repository at this point in the history
  • Loading branch information
robfrawley committed Mar 2, 2018
1 parent f44a254 commit 567a228
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Tests/Binary/Loader/FileSystemLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private function getDefaultDataRoots()
*
* @return FileSystemLoader
*/
private function getFileSystemLoader(array $roots = array(), LocatorInterface $locator = null)
private function getFileSystemLoader(array $roots = [], LocatorInterface $locator = null)
{
return new FileSystemLoader(
MimeTypeGuesser::getInstance(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,29 +215,29 @@ public function testAbleToCreateTwoDistinctLoaders()
$container = new ContainerBuilder();

$loader = new FileSystemLoaderFactory();
$loader->create($container, 'first_loader', array(
'data_root' => array('firstLoaderDataroot'),
$loader->create($container, 'first_loader', [
'data_root' => ['firstLoaderDataroot'],
'locator' => 'filesystem',
'bundle_resources' => array(
'bundle_resources' => [
'enabled' => false,
),
));
],
]);

$loader->create($container, 'second_loader', array(
'data_root' => array('secondLoaderDataroot'),
$loader->create($container, 'second_loader', [
'data_root' => ['secondLoaderDataroot'],
'locator' => 'filesystem',
'bundle_resources' => array(
'bundle_resources' => [
'enabled' => false,
),
));
],
]);

$this->assertEquals(
array('firstLoaderDataroot'),
$this->assertSame(
['firstLoaderDataroot'],
$container->getDefinition('liip_imagine.binary.loader.first_loader')->getArgument(2)->getArgument(0)
);

$this->assertEquals(
array('secondLoaderDataroot'),
$this->assertSame(
['secondLoaderDataroot'],
$container->getDefinition('liip_imagine.binary.loader.second_loader')->getArgument(2)->getArgument(0)
);
}
Expand Down

0 comments on commit 567a228

Please sign in to comment.