You are here

public function ProxyClassGeneratorTest::testInvalidPlaceholderThrowsException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php \Doctrine\Tests\Common\Proxy\ProxyClassGeneratorTest::testInvalidPlaceholderThrowsException()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php, line 213

Class

ProxyClassGeneratorTest
Test the proxy generator. Its work is generating on-the-fly subclasses of a given model, which implement the Proxy pattern.

Namespace

Doctrine\Tests\Common\Proxy

Code

public function testInvalidPlaceholderThrowsException() {
  $this
    ->setExpectedException('Doctrine\\Common\\Proxy\\Exception\\InvalidArgumentException');
  $generator = new ProxyGenerator(__DIR__ . '/generated', 'SomeNamespace');
  $generator
    ->setPlaceholder('<somePlaceholder>', array());
}