Files
DomFramework/Tests/test_outputjson.php
2014-02-27 10:00:41 +00:00

25 lines
517 B
PHP

<?php
class test_outputjson extends PHPUnit_Framework_TestCase
{
public function testoutputjson1 ()
{
$this->expectOutputString("\"\"");
$output = new outputjson ();
$output->out ("");
}
public function testoutputjson2 ()
{
$this->expectOutputString("\"string\"");
$output = new outputjson ();
$output->out ("string");
}
public function testoutputjson3 ()
{
$this->expectOutputString("[1,2,3]");
$output = new outputjson ();
$output->out (array (1,2,3));
}
}