public function ObjectManagerDecoratorTest::testAllMethodCallsAreDelegatedToTheWrappedInstance in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/ObjectManagerDecoratorTest.php \Doctrine\Tests\Common\Persistence\ObjectManagerDecoratorTest::testAllMethodCallsAreDelegatedToTheWrappedInstance()
@dataProvider getMethodParameters
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ ObjectManagerDecoratorTest.php, line 49
Class
Namespace
Doctrine\Tests\Common\PersistenceCode
public function testAllMethodCallsAreDelegatedToTheWrappedInstance($method, array $parameters) {
$stub = $this->wrapped
->expects($this
->once())
->method($method)
->will($this
->returnValue('INNER VALUE FROM ' . $method));
call_user_func_array(array(
$stub,
'with',
), $parameters);
$this
->assertSame('INNER VALUE FROM ' . $method, call_user_func_array(array(
$this->decorated,
$method,
), $parameters));
}