diff --git a/Tests/outputhtmlTest.php b/Tests/outputhtmlTest.php index 020214a..d94a8c1 100644 --- a/Tests/outputhtmlTest.php +++ b/Tests/outputhtmlTest.php @@ -11,21 +11,21 @@ class test_outputhtml extends PHPUnit_Framework_TestCase { $output = new outputhtml (); $res = $output->out (""); - $this->assertNotContains ("{content}", $res); + $this->expectOutputRegex ("#
\s+#", $res); } public function testlayout2 () { $output = new outputhtml (); $res = $output->out ("data"); - $this->assertContains("data", $res); + $this->expectOutputRegex("#data#"); } public function testlayout3 () { $output = new outputhtml (); $res = $output->out ("data", "title"); - $this->assertContains("data", $res); + $this->expectOutputRegex("#data#"); } public function testlayout4 () @@ -37,7 +37,7 @@ class test_outputhtml extends PHPUnit_Framework_TestCase