unittests : update outputhtmlTest
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2240 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -9,23 +9,23 @@ class test_outputhtml extends PHPUnit_Framework_TestCase
|
||||
/** Entry null */
|
||||
public function testlayout1 ()
|
||||
{
|
||||
$this->expectOutputString("");
|
||||
$output = new outputhtml ();
|
||||
print ($output->out (""));
|
||||
$res = $output->out ("");
|
||||
$this->assertNotContains ("{content}", $res);
|
||||
}
|
||||
|
||||
public function testlayout2 ()
|
||||
{
|
||||
$this->expectOutputString("data");
|
||||
$output = new outputhtml ();
|
||||
print ($output->out ("data"));
|
||||
$res = $output->out ("data");
|
||||
$this->assertContains("data", $res);
|
||||
}
|
||||
|
||||
public function testlayout3 ()
|
||||
{
|
||||
$this->expectOutputString("data");
|
||||
$output = new outputhtml ();
|
||||
print ($output->out ("data", "title"));
|
||||
$res = $output->out ("data", "title");
|
||||
$this->assertContains("data", $res);
|
||||
}
|
||||
|
||||
public function testlayout4 ()
|
||||
|
||||
Reference in New Issue
Block a user