BetterReflectionTest\Reflection\ReflectionFunctionAbstractTest::testGetParameterReturnsNullWhenNotFound PHP Метод

testGetParameterReturnsNullWhenNotFound() публичный Метод

    public function testGetParameterReturnsNullWhenNotFound()
    {
        $php = '<?php function foo($a, $b, $c = 1) {}';
        $reflector = new FunctionReflector(new StringSourceLocator($php));
        $functionInfo = $reflector->reflect('foo');
        $this->assertNull($functionInfo->getParameter('d'));
    }