Tests are now compliant with php-cs-fixer (CamelCase for method, phpdoc valid)

This commit is contained in:
2023-04-13 22:22:46 +02:00
parent b017700d0a
commit 273db5f183
51 changed files with 3926 additions and 3637 deletions

View File

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