File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/guides-restructured-text/tests/unit/Parser/Productions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ public function testTableNotClosed(): void
270
270
$ context = $ this ->createContext ($ input );
271
271
$ this ->rule ->apply ($ context );
272
272
273
- $ this ->logger ->hasError ('Malformed table ' );
273
+ self :: assertTrue ( $ this ->logger ->hasErrorThatContains ('Malformed table ' ) );
274
274
}
275
275
276
276
public function testErrorMultipleHeaderRows (): void
@@ -290,7 +290,7 @@ public function testErrorMultipleHeaderRows(): void
290
290
$ context = $ this ->createContext ($ input );
291
291
$ this ->rule ->apply ($ context );
292
292
293
- $ this ->logger ->hasError ('Malformed table: multiple "header rows" using "===" were found ' );
293
+ self :: assertTrue ( $ this ->logger ->hasErrorThatContains ('Malformed table: multiple "header rows" using "===" were found ' ) );
294
294
}
295
295
296
296
public function testNotEndingWithWhiteLine (): never
@@ -312,6 +312,6 @@ public function testNotEndingWithWhiteLine(): never
312
312
$ context = $ this ->createContext ($ input );
313
313
$ this ->rule ->apply ($ context );
314
314
315
- $ this ->logger ->hasError ('Malformed table: multiple "header rows" using "===" were found ' );
315
+ self :: assertTrue ( $ this ->logger ->hasErrorThatContains ('Malformed table: multiple "header rows" using "===" were found ' ) );
316
316
}
317
317
}
You can’t perform that action at this time.
0 commit comments