You are here

public function InstantiatorTest::testInstantiationFromNonExistingClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php \DoctrineTest\InstantiatorTest\InstantiatorTest::testInstantiationFromNonExistingClass()

@dataProvider getInvalidClassNames

Parameters

string $invalidClassName:

File

vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php, line 135

Class

InstantiatorTest
Tests for { @author Marco Pivetta <ocramius@gmail.com>

Namespace

DoctrineTest\InstantiatorTest

Code

public function testInstantiationFromNonExistingClass($invalidClassName) {
  $this
    ->setExpectedException('Doctrine\\Instantiator\\Exception\\InvalidArgumentException');
  $this->instantiator
    ->instantiate($invalidClassName);
}