You are here

private function ProxyClassGeneratorTest::generateAndRequire in Plug 7

5 calls to ProxyClassGeneratorTest::generateAndRequire()
ProxyClassGeneratorTest::setUp in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
ProxyClassGeneratorTest::testClassWithCallableTypeHintOnProxiedMethod in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
ProxyClassGeneratorTest::testClassWithSleepProxyGeneration in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
ProxyClassGeneratorTest::testClassWithStaticPropertyProxyGeneration in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
Check that the proxy doesn't serialize static properties (in __sleep() method) @group DCOM-212
ProxyClassGeneratorTest::testClassWithVariadicArgumentOnProxiedMethod in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php, line 140

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

private function generateAndRequire($proxyGenerator, $metadata) {
  $proxyGenerator
    ->generateProxyClass($metadata, $proxyGenerator
    ->getProxyFileName($metadata
    ->getName()));
  require_once $proxyGenerator
    ->getProxyFileName($metadata
    ->getName());
}