public function Framework_ProxyObjectTest::testMockedMethodWithReferenceIsProxiedToOriginalMethod in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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);
}