Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | public function testEvaluateEquatable() |
||
49 | { |
||
50 | $this |
||
51 | ->given($eq = Criteria::eq(new EquatableObject(5))) |
||
52 | ->then() |
||
53 | ->boolean($eq->evaluate(new EquatableObject(5))) |
||
54 | ->isTrue() |
||
55 | ->boolean($eq->evaluate(new EquatableObject(5.0))) |
||
56 | ->isTrue() |
||
57 | ->boolean($eq->evaluate(new EquatableObject(4))) |
||
58 | ->isFalse(); |
||
59 | } |
||
60 | } |
||
61 |