mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +02:00
- MFB Fix tests expectations
This commit is contained in:
parent
4c788e7703
commit
ff72c376c2
1 changed files with 5 additions and 5 deletions
|
@ -14,23 +14,23 @@ print "--- save as HTML\n";
|
||||||
print adjustDoctype($dom->saveHTML());
|
print adjustDoctype($dom->saveHTML());
|
||||||
|
|
||||||
function adjustDoctype($xml) {
|
function adjustDoctype($xml) {
|
||||||
return str_replace("DOCTYPE HTML","DOCTYPE html",$xml);
|
return str_replace(array("DOCTYPE HTML",'<p>','</p>'),array("DOCTYPE html",'',''),$xml);
|
||||||
}
|
}
|
||||||
|
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
--- save as XML
|
--- save as XML
|
||||||
<?xml version="1.0" standalone="yes"?>
|
<?xml version="1.0" standalone="yes"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||||
<html><head><title>Hello world</title></head><body><p>
|
<html><head><title>Hello world</title></head><body>
|
||||||
This is a not well-formed<br/>
|
This is a not well-formed<br/>
|
||||||
html files with undeclared entities 
|
html files with undeclared entities 
|
||||||
</p></body></html>
|
</body></html>
|
||||||
--- save as HTML
|
--- save as HTML
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||||
<html>
|
<html>
|
||||||
<head><title>Hello world</title></head>
|
<head><title>Hello world</title></head>
|
||||||
<body><p>
|
<body>
|
||||||
This is a not well-formed<br>
|
This is a not well-formed<br>
|
||||||
html files with undeclared entities
|
html files with undeclared entities
|
||||||
</p></body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue