This commit is contained in:
2022-11-25 21:21:30 +01:00
parent 2d6df0d5f0
commit 94deb06f52
132 changed files with 44887 additions and 41368 deletions

View File

@@ -1,4 +1,5 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
@@ -13,26 +14,26 @@ use Domframework\Outputjson;
class OutputjsonTest extends \PHPUnit_Framework_TestCase
{
/** Entry null */
public function testoutputjson1 ()
{
$this->expectOutputString("\"\"");
$output = new Outputjson ();
$output->out ("");
}
public function testoutputjson1()
{
$this->expectOutputString("\"\"");
$output = new Outputjson();
$output->out("");
}
/** Entry string */
public function testoutputjson2 ()
{
$this->expectOutputString("\"string\"");
$output = new Outputjson ();
$output->out ("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));
}
public function testoutputjson3()
{
$this->expectOutputString("[1,2,3]");
$output = new Outputjson();
$output->out(array (1,2,3));
}
}