for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ParamProcessor\Tests;
use ParamProcessor\Options;
use ParamProcessor\Param;
use ParamProcessor\ParamDefinition;
/**
* @covers ParamProcessor\Param
*
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
*/
class ParamTest extends \PHPUnit_Framework_TestCase {
public function testListParamProcessingWithEmptyListAsDefault() {
$definition = new ParamDefinition( 'string', 'something', [] );
$definitions = [ $definition ];
$param = new Param( $definition );
$param->process( $definitions, [], new Options() );
$this->assertSame( [], $param->getValue() );
}