public function Framework_ProxyObjectTest::testMockedMethodWithReferenceIsProxiedToOriginalMethod in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/tests/ProxyObjectTest.php \Framework_ProxyObjectTest::testMockedMethodWithReferenceIsProxiedToOriginalMethod()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ ProxyObjectTest.php, line 29
Class
- Framework_ProxyObjectTest
- @since Class available since Release 2.0.0
Code
public function testMockedMethodWithReferenceIsProxiedToOriginalMethod() {
$proxy = $this
->getMockBuilder('MethodCallbackByReference')
->enableProxyingToOriginalMethods()
->getMock();
$a = $b = $c = 0;
$proxy
->callback($a, $b, $c);
$this
->assertEquals(1, $b);
}