You are here

private function ProxyClassGeneratorTest::generateAndRequire in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php \Doctrine\Tests\Common\Proxy\ProxyClassGeneratorTest::generateAndRequire()
5 calls to ProxyClassGeneratorTest::generateAndRequire()
ProxyClassGeneratorTest::setUp in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.
ProxyClassGeneratorTest::testClassWithCallableTypeHintOnProxiedMethod in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
ProxyClassGeneratorTest::testClassWithSleepProxyGeneration in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
ProxyClassGeneratorTest::testClassWithStaticPropertyProxyGeneration in vendor/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 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php

File

vendor/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());
}