Passage en Namespace et tous les tests fonctionnels OK

This commit is contained in:
2021-05-10 11:48:15 +02:00
parent 536dd0d56b
commit eb30d8ef97
56 changed files with 1091 additions and 964 deletions

View File

@@ -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);