public function ProxyLogicTest::testFetchingProtectedAssociationViaPublicGetterCausesLazyLoading in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php \Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFetchingProtectedAssociationViaPublicGetterCausesLazyLoading()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyLogicTest.php, line 174
Class
- ProxyLogicTest
- Test the generated proxies behavior. These tests make assumptions about the structure of LazyLoadableObject
Namespace
Doctrine\Tests\Common\ProxyCode
public function testFetchingProtectedAssociationViaPublicGetterCausesLazyLoading() {
$this
->configureInitializerMock(1, array(
$this->lazyObject,
'getProtectedAssociation',
array(),
), function (Proxy $proxy) {
$proxy
->__setInitializer(null);
});
$this
->assertSame('protectedAssociationValue', $this->lazyObject
->getProtectedAssociation());
$this
->assertSame('protectedAssociationValue', $this->lazyObject
->getProtectedAssociation());
}