public function ProxyClassGeneratorTest::testProxyRespectsByRefMethodParameters 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::testProxyRespectsByRefMethodParameters()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyClassGeneratorTest.php, line 83
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 testProxyRespectsByRefMethodParameters() {
$method = new ReflectionMethod($this->proxyClass, 'byRefParamMethod');
$parameters = $method
->getParameters();
$this
->assertSame('thisIsNotByRef', $parameters[0]
->getName());
$this
->assertFalse($parameters[0]
->isPassedByReference());
$this
->assertSame('thisIsByRef', $parameters[1]
->getName());
$this
->assertTrue($parameters[1]
->isPassedByReference());
}