Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class ResolveConfigForLocationTest extends TestCase |
||
11 | { |
||
12 | public function testForLocationWithValidConfig() |
||
13 | { |
||
14 | $config = [ |
||
15 | 'param' => 'someParam', |
||
16 | 'operator' => 'someOperator', |
||
17 | 'value' => 'someValue' |
||
18 | ]; |
||
19 | $output = ResolveConfig::forLocation($config); |
||
20 | $this->assertEquals($config, $output); |
||
21 | } |
||
22 | |||
23 | public function testForLocationFailsWithoutParam() |
||
24 | { |
||
25 | $config = [ |
||
26 | 'operator' => 'someOperator', |
||
27 | 'value' => 'someValue' |
||
28 | ]; |
||
29 | $this->expectException(Exception::class); |
||
30 | ResolveConfig::forLocation($config); |
||
31 | } |
||
32 | |||
33 | public function testForLocationFailsWithoutOperator() |
||
41 | } |
||
42 | |||
43 | public function testForLocationFailsWithoutValue() |
||
51 | } |
||
52 | } |
||
53 |