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