Update Tests to valid the new outputHTML

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2845 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-07-06 11:48:50 +00:00
parent b7748f6ad1
commit 08aed2041b

View File

@@ -30,24 +30,22 @@ class test_outputhtml extends PHPUnit_Framework_TestCase
public function testlayout4 () public function testlayout4 ()
{ {
$this->expectOutputString("<html> $this->expectOutputString("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">
<body> <html><body>
Text Text
</body> </body></html>\n");
</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" );
} }
public function testlayout5 () public function testlayout5 ()
{ {
$this->expectOutputString("<html> $this->expectOutputString("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">
<body> <html><body>
Text Text
VARIABLE VARIABLE
</body> </body></html>\n");
</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",