private function ProxyClassGeneratorTest::createClassMetadata in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php \Doctrine\Tests\Common\Proxy\ProxyClassGeneratorTest::createClassMetadata()
6 calls to ProxyClassGeneratorTest::createClassMetadata()
- ProxyClassGeneratorTest::testClassWithCallableTypeHintOnProxiedMethod in vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyClassGeneratorTest.php - ProxyClassGeneratorTest::testClassWithInvalidTypeHintOnProxiedMethod 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 235
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\ProxyCode
private function createClassMetadata($className, array $ids) {
$metadata = $this
->getMock('Doctrine\\Common\\Persistence\\Mapping\\ClassMetadata');
$reflClass = new ReflectionClass($className);
$metadata
->expects($this
->any())
->method('getReflectionClass')
->will($this
->returnValue($reflClass));
$metadata
->expects($this
->any())
->method('getIdentifierFieldNames')
->will($this
->returnValue($ids));
$metadata
->expects($this
->any())
->method('getName')
->will($this
->returnValue($className));
return $metadata;
}