public function ProxyClassGeneratorTest::testNonNamespacedProxyGeneration in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyClassGeneratorTest.php, line 98
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
public function testNonNamespacedProxyGeneration() {
$classCode = file_get_contents($this->proxyGenerator
->getProxyFileName($this->metadata
->getName()));
$this
->assertNotContains("class LazyLoadableObject extends \\\\" . $this->metadata
->getName(), $classCode);
$this
->assertContains("class LazyLoadableObject extends \\" . $this->metadata
->getName(), $classCode);
}