File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function testIndexingWithDirectFileAccess()
57
57
if ($ msg ->body ->method === 'window/logMessage ' && $ promise ->state === Promise::PENDING ) {
58
58
if ($ msg ->body ->params ->type === MessageType::ERROR ) {
59
59
$ promise ->reject (new Exception ($ msg ->body ->params ->message ));
60
- } else if (strpos ( $ msg ->body ->params ->message , ' All 27 PHP files parsed ' ) !== false ) {
60
+ } else if (preg_match ( ' /All [0-9]+ PHP files parsed/ ' , $ msg ->body ->params ->message ) ) {
61
61
$ promise ->fulfill ();
62
62
}
63
63
}
@@ -103,7 +103,7 @@ public function testIndexingWithFilesAndContentRequests()
103
103
if ($ promise ->state === Promise::PENDING ) {
104
104
$ promise ->reject (new Exception ($ msg ->body ->params ->message ));
105
105
}
106
- } else if (strpos ( $ msg ->body ->params ->message , ' All 27 PHP files parsed ' ) !== false ) {
106
+ } else if (preg_match ( ' /All [0-9]+ PHP files parsed/ ' , $ msg ->body ->params ->message ) ) {
107
107
$ promise ->fulfill ();
108
108
}
109
109
}
You can’t perform that action at this time.
0 commit comments