Skip to content

Commit d2b5c9b

Browse files
committed
TASK: Add test for GlobalScope->lookupTypeFor
1 parent 711840a commit d2b5c9b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/Unit/TypeSystem/Scope/GlobalScope/GlobalScopeTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,15 @@ public function resolvesPrimitiveTypes(string $typeReferenceAsString, TypeInterf
7171
sprintf('Expected %s, got %s', $expectedType::class, $actualType::class)
7272
);
7373
}
74+
75+
/**
76+
* @test
77+
* @return void
78+
*/
79+
public function knowsNoLocalNames(): void
80+
{
81+
$globalScope = GlobalScope::get();
82+
83+
$this->assertNull($globalScope->lookupTypeFor('someVariable'));
84+
}
7485
}

0 commit comments

Comments
 (0)