Incorrect exception on trying to get object with undefined exception
vjik opened this issue · 1 comments
vjik commented
Test
di/tests/Unit/ContainerTest.php
Line 570 in 2cc9f80
$container = new Container(
[
'car' => Car::class,
]
);
$this->expectException(NotFoundException::class);
$container->get('car');
Should throws NotInstantiableException
instead of NotFoundException
.
samdark commented