mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
more testing fixes
This commit is contained in:
parent
b0705b4e29
commit
e16a4f3f85
@ -171,22 +171,16 @@ class SymbolLookupTest extends TestCase
|
||||
$this->assertSame('b\qux', $information->title);
|
||||
$this->assertNull($information->description);
|
||||
|
||||
/* TODO: what was the intention here?
|
||||
$information = $this->codebase->getSymbolInformation('somefile.php', '$_SESSION');
|
||||
$this->assertNotNull($information);
|
||||
$this->assertSame("<?php array<string, mixed>", $information['type']);
|
||||
*/
|
||||
|
||||
$information = $this->codebase->getMarkupContentForSymbol(
|
||||
new Reference(
|
||||
'somefile.php',
|
||||
'$_SERVER',
|
||||
'$_SESSION',
|
||||
$range
|
||||
)
|
||||
);
|
||||
$this->assertNotNull($information);
|
||||
$this->assertSame("array<array-key, mixed>", $information->code);
|
||||
$this->assertSame('$_SERVER', $information->title);
|
||||
$this->assertSame("array<string, mixed>", $information->code);
|
||||
$this->assertSame('$_SESSION', $information->title);
|
||||
$this->assertNull($information->description);
|
||||
|
||||
$information = $this->codebase->getMarkupContentForSymbol(
|
||||
|
Loading…
Reference in New Issue
Block a user