We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7058dde commit f21646eCopy full SHA for f21646e
Service/Test/ServiceLocatorTestCase.php
@@ -75,10 +75,8 @@ public function testThrowsOnUndefinedInternalService()
75
'foo' => function () use (&$locator) { return $locator->get('bar'); },
76
]);
77
78
- if (!$this->getExpectedException()) {
79
- $this->expectException(NotFoundExceptionInterface::class);
80
- $this->expectExceptionMessage('The service "foo" has a dependency on a non-existent service "bar". This locator only knows about the "foo" service.');
81
- }
+ $this->expectException(NotFoundExceptionInterface::class);
+ $this->expectExceptionMessage('The service "foo" has a dependency on a non-existent service "bar". This locator only knows about the "foo" service.');
82
83
$locator->get('foo');
84
}
0 commit comments