blob: f25e4af37f78237b1257cf047c41005831558c68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
namespace ParamProcessor\Tests;
use ParamProcessor\Options;
use ParamProcessor\Param;
use ParamProcessor\ParamDefinition;
use PHPUnit\Framework\TestCase;
/**
* @covers \ParamProcessor\Param
*
* @licence GNU GPL v2+
* @author Jeroen De Dauw < jeroendedauw@gmail.com >
*/
class ParamTest extends TestCase {
public function testListParamProcessingWithEmptyListAsDefault() {
$definition = new ParamDefinition( 'string', 'something', [] );
$definitions = [ $definition ];
$param = new Param( $definition );
$param->process( $definitions, [], new Options() );
$this->assertSame( [], $param->getValue() );
}
}
|