*/ /** Test the outputhtml.php file */ class test_outputhtml extends PHPUnit_Framework_TestCase { /** Entry null */ public function testlayout1 () { $output = new outputhtml (); $res = $output->out (""); $this->expectOutputRegex ("#\s+#", $res); } public function testlayout2 () { $output = new outputhtml (); $res = $output->out ("data"); $this->expectOutputRegex("#data#"); } public function testlayout3 () { $output = new outputhtml (); $res = $output->out ("data", "title"); $this->expectOutputRegex("#data#"); } public function testlayout4 () { $this->expectOutputString(" Text \n"); $output = new outputhtml (); $output->out ("data", "title", FALSE, FALSE, "Tests/layout.html" ); } public function testlayout5 () { $this->expectOutputString(" Text VARIABLE \n"); $output = new outputhtml (); $variable = array ("var"=>"VARIABLE"); $output->out ("data", "title", FALSE, FALSE, "Tests/layout.html", null, $variable); } }