Tests/OutputhtmlTest.php : html code is now indented
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user