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

testInvocationWithVariadicArguments() public method

    public function testInvocationWithVariadicArguments()
    {
        $child = $this->getMock(self::FIRST_CLASS_NAME, array('none'));
        $invocation = new self::$invocationClass(self::FIRST_CLASS_NAME, 'variadicArgsTest', []);
        $args = [];
        $expected = '';
        for ($i = 0; $i < 10; $i++) {
            $args[] = $i;
            $expected .= $i;
            $result = $invocation($child, $args);
            $this->assertEquals($expected, $result);
        }
    }