public function AbstractProxyFactoryTest::testDisallowsResettingInitializedProxy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/AbstractProxyFactoryTest.php \Doctrine\Tests\Common\Proxy\AbstractProxyFactoryTest::testDisallowsResettingInitializedProxy()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ AbstractProxyFactoryTest.php, line 103
Class
Namespace
Doctrine\Tests\Common\ProxyCode
public function testDisallowsResettingInitializedProxy() {
$proxyFactory = $this
->getMockForAbstractClass('Doctrine\\Common\\Proxy\\AbstractProxyFactory', array(), '', false);
$proxy = $this
->getMock('Doctrine\\Common\\Proxy\\Proxy');
$proxy
->expects($this
->any())
->method('__isInitialized')
->will($this
->returnValue(true));
$this
->setExpectedException('Doctrine\\Common\\Proxy\\Exception\\InvalidArgumentException');
$proxyFactory
->resetUninitializedProxy($proxy);
}