* @license BSD */ namespace Domframework\Tests; /** Test the outputhtml.php file */ class outputhtmlTest extends \PHPUnit_Framework_TestCase { /** Entry null */ public function testlayout1 () { $this->expectOutputRegex ("#\s+#"); $output = new outputhtml (); $res = $output->out (""); } public function testlayout2 () { $this->expectOutputRegex("#data#"); $output = new outputhtml (); $res = $output->out ("data"); } public function testlayout3 () { $this->expectOutputRegex("#data#"); $output = new outputhtml (); $res = $output->out ("data", "title"); } 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); } }