Skip to content

Commit

Permalink
ext/tidy: fix DOCTYPE definitions in expected test output.
Browse files Browse the repository at this point in the history
The test suite for the tidy extension was written before HTML5 was
"standardized". The new tidy-html5 library will output an HTML5
DOCTYPE in the absence of any other information, so the expected test
outputs have been updated to accomodate the absense of an HTML version
(which is how you declare "HTML5").
  • Loading branch information
orlitzky authored and weltling committed Jul 11, 2016
1 parent a552ac5 commit 0e3e132
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ext/tidy/tests/003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ tidy_clean_repair()
echo tidy_get_output($a);

?>
--EXPECT--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
--EXPECTF--
<!DOCTYPE html%S>
<html>
<head>
<title></title>
Expand Down
4 changes: 2 additions & 2 deletions ext/tidy/tests/017.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ The Tidy Output Buffer Filter
--FILE--
<?php ob_start("ob_tidyhandler"); ?>
<B>testing</I>
--EXPECT--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
--EXPECTF--
<!DOCTYPE html%S>
<html>
<head>
<title></title>
Expand Down
5 changes: 2 additions & 3 deletions ext/tidy/tests/020.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ var_dump(strlen($tidy->errorBuffer) > 50);

echo $tidy;
?>
--EXPECT--
--EXPECTF--
bool(true)
bool(true)
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html%A>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
Expand Down
4 changes: 2 additions & 2 deletions ext/tidy/tests/026.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ echo '<p>xpto</p>';

?>
</html>
--EXPECT--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
--EXPECTF--
<!DOCTYPE html%S>
<html>
<head>
<title></title>
Expand Down

0 comments on commit 0e3e132

Please sign in to comment.