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

shouldWorkWithDefaultParameters() 공개 메소드

    public function shouldWorkWithDefaultParameters()
    {
        //given
        $testMethodHandler = new TestMethodHandler();
        $proxy = DynamicProxy::newInstance('Ouzo\\Utilities\\ClassWithMethodDefaultParameters', $testMethodHandler);
        //when
        $proxy->fun();
        //then
        $this->assertEquals(array(array('fun', array())), $testMethodHandler->calls);
    }