Passage en Namespace et tous les tests fonctionnels OK
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user