diff --git a/tests/unit/Symfony/Components/DependencyInjection/ContainerTest.php b/tests/unit/Symfony/Components/DependencyInjection/ContainerTest.php index b4033c907a..921d93cada 100644 --- a/tests/unit/Symfony/Components/DependencyInjection/ContainerTest.php +++ b/tests/unit/Symfony/Components/DependencyInjection/ContainerTest.php @@ -216,7 +216,7 @@ $t->is($sc->getFooBar_FooService(), $foo, '__call() finds services is the method try { $sc->getFooBar_Foo(); - $t->pass('__call() throws a \RuntimeException exception if the method is not a service method'); + $t->fail('__call() throws a \RuntimeException exception if the method is not a service method'); } catch (\RuntimeException $e) {