The output* can't exit or the unittest crash. Put an exception

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2375 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-10-23 12:53:13 +00:00
parent 2fec89d95f
commit 64c1130fa7
6 changed files with 13 additions and 3 deletions

View File

@@ -9,23 +9,23 @@ class test_outputhtml extends PHPUnit_Framework_TestCase
/** Entry null */
public function testlayout1 ()
{
$this->expectOutputRegex ("#<body>\s+</body>#");
$output = new outputhtml ();
$res = $output->out ("");
$this->expectOutputRegex ("#<body>\s+</body>#", $res);
}
public function testlayout2 ()
{
$this->expectOutputRegex("#data#");
$output = new outputhtml ();
$res = $output->out ("data");
$this->expectOutputRegex("#data#");
}
public function testlayout3 ()
{
$this->expectOutputRegex("#data#");
$output = new outputhtml ();
$res = $output->out ("data", "title");
$this->expectOutputRegex("#data#");
}
public function testlayout4 ()