Skip to content

Commit 74c880e

Browse files
nielsdosGirgias
authored andcommitted
Fix Tidy tests failing due to different spelling
On my system, with Tidy 5.7.45, I get the following error diff for two tests: 002+ line 1 column 7 - Error: <asd> is not recognised! 002- line 1 column 7 - Error: <asd> is not recognized! As we can see, the spelling of recognised is different. Use an EXPECTF and %c to mitigate this issue. Signed-off-by: George Peter Banyard <[email protected]>
1 parent 8cac830 commit 74c880e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/tidy/tests/006.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ tidy
88
echo tidy_get_error_buffer($a);
99

1010
?>
11-
--EXPECT--
11+
--EXPECTF--
1212
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
13-
line 1 column 7 - Error: <asd> is not recognized!
13+
line 1 column 7 - Error: <asd> is not recogni%ced!
1414
line 1 column 7 - Warning: discarding unexpected <asd>
1515
line 1 column 17 - Warning: discarding unexpected </html>
1616
line 1 column 7 - Warning: inserting missing 'title' element

ext/tidy/tests/008.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ tidy
77
$a = tidy_parse_string("<HTML><asd asdf></HTML>");
88
echo $a->errorBuffer;
99
?>
10-
--EXPECT--
10+
--EXPECTF--
1111
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
12-
line 1 column 7 - Error: <asd> is not recognized!
12+
line 1 column 7 - Error: <asd> is not recogni%ced!
1313
line 1 column 7 - Warning: discarding unexpected <asd>
1414
line 1 column 17 - Warning: discarding unexpected </html>
1515
line 1 column 7 - Warning: inserting missing 'title' element

0 commit comments

Comments
 (0)