1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00

Fix test, this is kinda ugly, but at least for me on Windows there seems to be some messed up line endings

This commit is contained in:
Kalle Sommer Nielsen
2016-10-20 14:24:01 +02:00
parent 66b2c5c5a4
commit aeeaedeeb7

View File

@@ -17,13 +17,13 @@ function adjustDoctype($xml) {
return str_replace(array("DOCTYPE HTML",'<p>','</p>'),array("DOCTYPE html",'',''),$xml);
}
--EXPECT--
--EXPECTF--
--- save as XML
<?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">
<html><head><title>Hello world</title></head><body>
This is a not well-formed<br/>
html files with undeclared entities&#xA0;
<html><head><title>Hello world</title></head><body>%s
This is a not well-formed<br/>%s
html files with undeclared entities&#xA0;%s
</body></html>
--- save as HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">