public function ProxyLogicTest::testNoticeWhenReadingNonExistentPublicProperties 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::testNoticeWhenReadingNonExistentPublicProperties()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyLogicTest.php, line 204
Class
- ProxyLogicTest
- Test the generated proxies behavior. These tests make assumptions about the structure of LazyLoadableObject
Namespace
Doctrine\Tests\Common\ProxyCode
public function testNoticeWhenReadingNonExistentPublicProperties() {
$this
->configureInitializerMock(0);
$class = get_class($this->lazyObject);
$this
->setExpectedException('PHPUnit_Framework_Error_Notice', 'Undefined property: ' . $class . '::$non_existing_property');
$this->lazyObject->non_existing_property;
}