Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function testMatchesYieldsReport() |
||
14 | { |
||
15 | $filter = $this->getMock(Filters\FilterInterface::class); |
||
16 | $filter |
||
17 | ->expects($this->once()) |
||
18 | ->method('matches') |
||
19 | ->with($this->anything()) |
||
20 | ->will($this->returnValue('somereport')); |
||
21 | |||
22 | $filters = new Filters([$filter]); |
||
23 | |||
24 | $this->assertEquals( |
||
25 | ['somereport'], |
||
26 | iterator_to_array($filters->matches(new NormalizedValue('test'))) |
||
27 | ); |
||
28 | } |
||
29 | |||
45 | } |