public function ProxyLogicTest::testFailedLoadingWillThrowException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php \Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFailedLoadingWillThrowException()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyLogicTest.php, line 311
Class
- ProxyLogicTest
- Test the generated proxies behavior. These tests make assumptions about the structure of LazyLoadableObject
Namespace
Doctrine\Tests\Common\ProxyCode
public function testFailedLoadingWillThrowException() {
$this->proxyLoader
->expects($this
->any())
->method('load')
->will($this
->returnValue(null));
$this
->setExpectedException('UnexpectedValueException');
$this->lazyObject
->__setInitializer($this
->getSuggestedInitializerImplementation());
$this->lazyObject
->__load();
}