public function InvalidArgumentExceptionTest::testFromNonExistingTypeWithInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/InvalidArgumentExceptionTest.php \DoctrineTest\InstantiatorTest\Exception\InvalidArgumentExceptionTest::testFromNonExistingTypeWithInterface()
File
- vendor/
doctrine/ instantiator/ tests/ DoctrineTest/ InstantiatorTest/ Exception/ InvalidArgumentExceptionTest.php, line 61
Class
- InvalidArgumentExceptionTest
- Tests for { @author Marco Pivetta <ocramius@gmail.com>
Namespace
DoctrineTest\InstantiatorTest\ExceptionCode
public function testFromNonExistingTypeWithInterface() {
$exception = InvalidArgumentException::fromNonExistingClass('Doctrine\\Instantiator\\InstantiatorInterface');
$this
->assertSame('The provided type "Doctrine\\Instantiator\\InstantiatorInterface" is an interface, ' . 'and can not be instantiated', $exception
->getMessage());
}