Passage en Namespace et tous les tests fonctionnels OK
This commit is contained in:
@@ -7,28 +7,30 @@
|
||||
|
||||
namespace Domframework\Tests;
|
||||
|
||||
/** Test the outputhtml.php file */
|
||||
class outputhtmlTest extends \PHPUnit_Framework_TestCase
|
||||
use Domframework\Outputhtml;
|
||||
|
||||
/** Test the Outputhtml.php file */
|
||||
class OutputhtmlTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/** Entry null */
|
||||
public function testlayout1 ()
|
||||
{
|
||||
$this->expectOutputRegex ("#<body>\s+</body>#");
|
||||
$output = new outputhtml ();
|
||||
$output = new Outputhtml ();
|
||||
$res = $output->out ("");
|
||||
}
|
||||
|
||||
public function testlayout2 ()
|
||||
{
|
||||
$this->expectOutputRegex("#data#");
|
||||
$output = new outputhtml ();
|
||||
$output = new Outputhtml ();
|
||||
$res = $output->out ("data");
|
||||
}
|
||||
|
||||
public function testlayout3 ()
|
||||
{
|
||||
$this->expectOutputRegex("#data#");
|
||||
$output = new outputhtml ();
|
||||
$output = new Outputhtml ();
|
||||
$res = $output->out ("data", "title");
|
||||
}
|
||||
|
||||
@@ -39,7 +41,7 @@ class outputhtmlTest extends \PHPUnit_Framework_TestCase
|
||||
Text
|
||||
"." "."
|
||||
</body></html>\n");
|
||||
$output = new outputhtml ();
|
||||
$output = new Outputhtml ();
|
||||
$output->out ("data", "title", FALSE, FALSE, "Tests/layout.html" );
|
||||
}
|
||||
|
||||
@@ -50,7 +52,7 @@ class outputhtmlTest extends \PHPUnit_Framework_TestCase
|
||||
Text
|
||||
VARIABLE
|
||||
</body></html>\n");
|
||||
$output = new outputhtml ();
|
||||
$output = new Outputhtml ();
|
||||
$variable = array ("var"=>"VARIABLE");
|
||||
$output->out ("data", "title", FALSE, FALSE, "Tests/layout.html",
|
||||
null, $variable);
|
||||
|
||||
Reference in New Issue
Block a user