From 0a9101d79e09780900e04179809b5dca44075631 Mon Sep 17 00:00:00 2001 From: beberlei Date: Sun, 14 Mar 2010 21:20:13 +0000 Subject: [PATCH] [2.0] Fixed failing tests due to r7323 --- .../Doctrine/Tests/ORM/Proxy/ProxyClassGeneratorTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Proxy/ProxyClassGeneratorTest.php b/tests/Doctrine/Tests/ORM/Proxy/ProxyClassGeneratorTest.php index 10789c3fc..c0e8ac601 100644 --- a/tests/Doctrine/Tests/ORM/Proxy/ProxyClassGeneratorTest.php +++ b/tests/Doctrine/Tests/ORM/Proxy/ProxyClassGeneratorTest.php @@ -60,7 +60,8 @@ class ProxyClassGeneratorTest extends \Doctrine\Tests\OrmTestCase $persister->expects($this->atLeastOnce()) ->method('load') - ->with($this->equalTo($identifier), $this->isInstanceOf($proxyClass)); + ->with($this->equalTo($identifier), $this->isInstanceOf($proxyClass)) + ->will($this->returnValue(new \stdClass())); // fake return of entity instance $proxy->getDescription(); } @@ -74,7 +75,8 @@ class ProxyClassGeneratorTest extends \Doctrine\Tests\OrmTestCase $proxy = $this->_proxyFactory->getProxy('Doctrine\Tests\Models\ECommerce\ECommerceFeature', $identifier); $persister->expects($this->atLeastOnce()) ->method('load') - ->with($this->equalTo($identifier), $this->isInstanceOf($proxyClass)); + ->with($this->equalTo($identifier), $this->isInstanceOf($proxyClass)) + ->will($this->returnValue(new \stdClass())); // fake return of entity instance $proxy->getId(); $proxy->getDescription(); } @@ -142,7 +144,7 @@ class ProxyClassGeneratorTest extends \Doctrine\Tests\OrmTestCase protected function _getMockPersister() { - $persister = $this->getMock('Doctrine\ORM\Persisters\StandardEntityPersister', array('load'), array(), '', false, false, false); + $persister = $this->getMock('Doctrine\ORM\Persisters\StandardEntityPersister', array('load'), array(), '', false); return $persister; } }