Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function testApply() |
||
23 | { |
||
24 | $this |
||
25 | /* @var \Cubiche\Core\Selector\Count $count */ |
||
26 | ->given($count = $this->newTestedInstance()) |
||
27 | ->then() |
||
28 | ->integer($count->apply(array(6, 7, 8, 9))) |
||
29 | ->isEqualTo(4) |
||
30 | ->integer($count->apply(array(6, 7, 8, 9, 5))) |
||
31 | ->isEqualTo(5) |
||
32 | ->integer($count->apply(array())) |
||
33 | ->isEqualTo(0) |
||
34 | ; |
||
35 | } |
||
36 | } |
||
37 |