* @license BSD */ namespace Domframework\Tests; use Domframework\Outputhtml; /** * 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 = ["var" => "VARIABLE"]; $output->out( "data", "title", false, false, "Tests/layout.html", null, $variable ); } }