public 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());
}