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

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

    public function testPhp7TypeDeclarationWithIntBuiltinType()
    {
        $classInfo = $this->reflector->reflect(Php7ParameterTypeDeclarations::class);
        $method = $classInfo->getMethod('foo');
        $intParamType = $method->getParameter('intParam')->getType();
        $this->assertSame('int', (string) $intParamType);
        $this->assertTrue($intParamType->isBuiltin());
        $this->assertFalse($intParamType->allowsNull());
    }