public function ProxyLogicTest::testNoticeWhenReadingNonExistentPublicProperties in Plug 7
File
- lib/
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;
}