| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 42 | public function testIntegration($content, array $rules) |
||
| 43 | { |
||
| 44 | $sut = LUT\Parser::parse($content); |
||
| 45 | |||
| 46 | foreach ($rules as $rule) { |
||
| 47 | $this |
||
| 48 | ->when($matched = $sut->match($rule['ua'], $rule['url'])) |
||
| 49 | ->then |
||
| 50 | ->boolean($rule['mode'] === 'allow') |
||
| 51 | ->isEqualTo($matched); |
||
| 52 | } |
||
| 53 | } |
||
| 54 | } |
||
| 55 |