BetterReflectionTest\Reflection\ReflectionParameterTest::testIsCallable PHP Метод

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

public testIsCallable ( )
    public function testIsCallable()
    {
        $classInfo = $this->reflector->reflect('\\BetterReflectionTest\\Fixture\\Methods');
        $method = $classInfo->getMethod('methodWithExplicitTypedParameters');
        $nonCallableParam = $method->getParameter('stdClassParameter');
        $this->assertFalse($nonCallableParam->isCallable());
        $callableParam = $method->getParameter('callableParameter');
        $this->assertTrue($callableParam->isCallable());
    }