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:
@@ -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 
|
||||
<html><head><title>Hello world</title></head><body>%s
|
||||
This is a not well-formed<br/>%s
|
||||
html files with undeclared entities %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">
|
||||
|
||||
Reference in New Issue
Block a user