Ouzo\Utilities\DynamicProxyTest::shouldCreateProxyForMethodWithParamsByRef PHP 메소드

shouldCreateProxyForMethodWithParamsByRef() 공개 메소드

    public function shouldCreateProxyForMethodWithParamsByRef()
    {
        //when
        $testMethodHandler = new TestMethodHandler();
        $proxy = DynamicProxy::newInstance('Ouzo\\Utilities\\ClassWithMethodThatTakesParamsByRef', $testMethodHandler);
        $param = array();
        //when
        $proxy->fun1($param);
        //then
        $this->assertEquals(array(array('fun1', array($param))), $testMethodHandler->calls);
    }