Update Tests to supports namespaces

This commit is contained in:
2021-05-07 16:55:38 +02:00
parent ccf0f47c7f
commit 55530b055c
49 changed files with 82 additions and 64 deletions

36
Tests/OutputjsonTest.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputjson.php file */
class outputjsonTest extends \PHPUnit_Framework_TestCase
{
/** Entry null */
public function testoutputjson1 ()
{
$this->expectOutputString("\"\"");
$output = new outputjson ();
$output->out ("");
}
/** Entry string */
public function testoutputjson2 ()
{
$this->expectOutputString("\"string\"");
$output = new outputjson ();
$output->out ("string");
}
/** Entry array */
public function testoutputjson3 ()
{
$this->expectOutputString("[1,2,3]");
$output = new outputjson ();
$output->out (array (1,2,3));
}
}