ParamAliasTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testListParamProcessingWithEmptyListAsDefault() 0 5 1
1
<?php
2
3
namespace ParamProcessor\Tests\Unit;
4
5
use ParamProcessor\Param;
6
use ParamProcessor\ParamDefinition;
7
use PHPUnit\Framework\TestCase;
8
9
/**
10
 * @licence GNU GPL v2+
11
 * @author Jeroen De Dauw < [email protected] >
12
 */
13
class ParamAliasTest extends TestCase {
14
15
	public function testListParamProcessingWithEmptyListAsDefault() {
16
		$definition = new ParamDefinition( 'string', 'something' );
17
		$param = new Param( $definition );
18
		$this->assertTrue( $param->isRequired() );
19
	}
20
21
}
22