1
0
Fork 0

Fix risky test warning

pull/668/head
Jürgen Steitz 2018-08-29 21:35:18 +02:00
parent 09fbec247c
commit a5417cdf72
1 changed files with 2 additions and 2 deletions

View File

@ -61,14 +61,14 @@ class LanguageServerTest extends TestCase
if ($msg->body->params->type === MessageType::ERROR) { if ($msg->body->params->type === MessageType::ERROR) {
$promise->reject(new Exception($msg->body->params->message)); $promise->reject(new Exception($msg->body->params->message));
} else if (preg_match('/All \d+ PHP files parsed/', $msg->body->params->message)) { } else if (preg_match('/All \d+ PHP files parsed/', $msg->body->params->message)) {
$promise->fulfill(); $promise->fulfill(true);
} }
} }
}); });
$server = new LanguageServer($input, $output); $server = new LanguageServer($input, $output);
$capabilities = new ClientCapabilities; $capabilities = new ClientCapabilities;
$server->initialize($capabilities, realpath(__DIR__ . '/../fixtures'), getmypid(), new Options); $server->initialize($capabilities, realpath(__DIR__ . '/../fixtures'), getmypid(), new Options);
$promise->wait(); $this->assertTrue($promise->wait());
} }
public function testIndexingWithFilesAndContentRequests() public function testIndexingWithFilesAndContentRequests()