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,14 +7,16 @@
namespace Domframework\Tests;
/** Test the outputjson.php file */
class outputjsonTest extends \PHPUnit_Framework_TestCase
use Domframework\Outputjson;
/** Test the Outputjson.php file */
class OutputjsonTest extends \PHPUnit_Framework_TestCase
{
/** Entry null */
public function testoutputjson1 ()
{
$this->expectOutputString("\"\"");
$output = new outputjson ();
$output = new Outputjson ();
$output->out ("");
}
@@ -22,7 +24,7 @@ class outputjsonTest extends \PHPUnit_Framework_TestCase
public function testoutputjson2 ()
{
$this->expectOutputString("\"string\"");
$output = new outputjson ();
$output = new Outputjson ();
$output->out ("string");
}
@@ -30,7 +32,7 @@ class outputjsonTest extends \PHPUnit_Framework_TestCase
public function testoutputjson3 ()
{
$this->expectOutputString("[1,2,3]");
$output = new outputjson ();
$output = new Outputjson ();
$output->out (array (1,2,3));
}
}