Tests/OutputhtmlTest.php : html code is now indented

This commit is contained in:
2022-06-14 16:48:02 +02:00
parent 5f0fdd951f
commit 72b3251b1e

View File

@@ -37,10 +37,12 @@ class OutputhtmlTest extends \PHPUnit_Framework_TestCase
public function testlayout4 () public function testlayout4 ()
{ {
$this->expectOutputString("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\"> $this->expectOutputString("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">
<html><body> <html>
<body>
Text Text
"." "." "." "."
</body></html>\n"); </body>
</html>\n");
$output = new Outputhtml (); $output = new Outputhtml ();
$output->out ("data", "title", FALSE, FALSE, "Tests/layout.html" ); $output->out ("data", "title", FALSE, FALSE, "Tests/layout.html" );
} }
@@ -48,10 +50,12 @@ class OutputhtmlTest extends \PHPUnit_Framework_TestCase
public function testlayout5 () public function testlayout5 ()
{ {
$this->expectOutputString("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\"> $this->expectOutputString("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">
<html><body> <html>
<body>
Text Text
VARIABLE VARIABLE
</body></html>\n"); </body>
</html>\n");
$output = new Outputhtml (); $output = new Outputhtml ();
$variable = array ("var"=>"VARIABLE"); $variable = array ("var"=>"VARIABLE");
$output->out ("data", "title", FALSE, FALSE, "Tests/layout.html", $output->out ("data", "title", FALSE, FALSE, "Tests/layout.html",