Tests are now compliant with php-cs-fixer (CamelCase for method, phpdoc valid)
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user