Skip to content

Commit 846c72a

Browse files
orlitzkyweltling
authored andcommitted
ext/tidy: fix expected test output with tidy-html5.
One of the tidy tests expects some output that has (harmlessly) changed in tidy-html5. The "EXPECT" block for that test was changed to "EXPECTF" and mangled to accept both the old and new outputs.
1 parent 08b10f1 commit 846c72a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/tidy/tests/004.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ $a = tidy_parse_string($html);
1919
var_dump(tidy_diagnose($a));
2020
echo tidy_get_error_buffer($a);
2121
?>
22-
--EXPECT--
22+
--EXPECTF--
2323
bool(true)
2424
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
2525
line 1 column 7 - Warning: discarding unexpected </html>
2626
line 1 column 14 - Warning: inserting missing 'title' element
27-
Info: Document content looks like HTML 3.2
28-
3 warnings, 0 errors were found!
27+
Info: Document content looks like HTML%w%d%S
28+
%S3 warnings%S0 errors%S
2929
bool(true)
3030
Info: Document content looks like HTML 3.2
3131
No warnings or errors were found.

0 commit comments

Comments
 (0)