1
0
Fork 0

Fix unsupported hover test

pull/357/head
Rob Lourens 2017-05-22 15:44:24 -07:00
parent d7a4034eac
commit 97937eaadb
1 changed files with 2 additions and 1 deletions

View File

@ -165,8 +165,9 @@ class HoverTest extends ServerTestCase
new TextDocumentIdentifier($reference->uri),
$reference->range->end
)->wait();
// TODO - should pretty print with fqns, like \define, \false. Not yet supported by tolerant-php-parser
$this->assertEquals(new Hover([
new MarkedString('php', "<?php\n\\define('TEST_DEFINE_CONSTANT', \\false);"),
new MarkedString('php', "<?php\ndefine('TEST_DEFINE_CONSTANT', false)"),
'Lorem ipsum dolor sit amet, consectetur.'
], $reference->range), $result);
}