Ouzo\Utilities\DynamicProxyTest::shouldWorkWithTypedParameters PHP Method

shouldWorkWithTypedParameters() public method

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