Go\Aop\Framework\DynamicClosureSplatMethodInvocationTest::testDynamicMethodInvocation PHP Method

testDynamicMethodInvocation() public method

Tests dynamic method invocations
public testDynamicMethodInvocation ( $methodName, $expectedResult )
    public function testDynamicMethodInvocation($methodName, $expectedResult)
    {
        $child = $this->getMock(self::FIRST_CLASS_NAME, array('none'));
        $invocation = new self::$invocationClass(self::FIRST_CLASS_NAME, $methodName, []);
        $result = $invocation($child);
        $this->assertEquals($expectedResult, $result);
    }