Skip to content

Commit 2d582ef

Browse files
committed
Relax service locator tests. Allow any order
1 parent 4619cd0 commit 2d582ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ public function testNoExceptionOnNonExistentTypeHintOptionalArg()
236236
$pass->process($container);
237237

238238
$locator = $container->getDefinition((string) $resolver->getArgument(0))->getArgument(0);
239-
$this->assertSame(['foo::barAction', 'foo::fooAction'], array_keys($locator));
239+
240+
$this->assertEqualsCanonicalizing(['foo::barAction', 'foo::fooAction'], array_keys($locator));
240241
}
241242

242243
public function testArgumentWithNoTypeHintIsOk()

Tests/DependencyInjection/RemoveEmptyControllerArgumentLocatorsPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testProcess()
5757
'Symfony\Component\HttpKernel\DependencyInjection\RemoveEmptyControllerArgumentLocatorsPass: Removing method "setTestCase" of service "c2" from controller candidates: the method is called at instantiation, thus cannot be an action.',
5858
];
5959

60-
$this->assertSame($expectedLog, $container->getCompiler()->getLog());
60+
$this->assertEqualsCanonicalizing($expectedLog, $container->getCompiler()->getLog());
6161
}
6262

6363
public function testInvoke()

0 commit comments

Comments
 (0)