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

shouldInterceptMethodCalls() 공개 메소드

    public function shouldInterceptMethodCalls()
    {
        //given
        $testMethodHandler = new TestMethodHandler();
        $proxy = DynamicProxy::newInstance('Ouzo\\Utilities\\ProxiedClass', $testMethodHandler);
        //when
        $proxy->fun1(1, 2);
        //then
        $this->assertEquals(array(array('fun1', array(1, 2))), $testMethodHandler->calls);
    }