public function testNativeTypes()
{
$values = [INativeType::TYPE_STRING, INativeType::TYPE_INT, INativeType::TYPE_BOOL, INativeType::TYPE_DOUBLE, INativeType::TYPE_NULL, INativeType::TYPE_ARRAY, INativeType::TYPE_RESOURCE];
foreach ($values as $expectedType) {
$this->doAnalysisTest(function () {
$var;
}, function (ITypeAnalysis $analysis, O\VariableExpression $expression) use($expectedType) {
$this->assertCorrectType($analysis, $this->typeSystem->getNativeType($expectedType), $expression);
}, ['var' => $this->typeSystem->getNativeType($expectedType)]);
}
}