Skip to content

Commit f21646e

Browse files
committed
Remove calls to getExpectedException()
1 parent 7058dde commit f21646e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Service/Test/ServiceLocatorTestCase.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ public function testThrowsOnUndefinedInternalService()
7575
'foo' => function () use (&$locator) { return $locator->get('bar'); },
7676
]);
7777

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-
}
78+
$this->expectException(NotFoundExceptionInterface::class);
79+
$this->expectExceptionMessage('The service "foo" has a dependency on a non-existent service "bar". This locator only knows about the "foo" service.');
8280

8381
$locator->get('foo');
8482
}

0 commit comments

Comments
 (0)