Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function test_valueSubtract_numeric() |
||
29 | { |
||
30 | $collection = new Collection(); |
||
31 | |||
32 | $collection->valueSubtract('foe', 1); |
||
33 | self::assertSame(-1, $collection->get('foe')); |
||
34 | |||
35 | $collection->set('foe', 5); |
||
36 | $collection->valueSubtract('foe', 2); |
||
37 | self::assertSame(3, $collection->get('foe')); |
||
38 | } |
||
40 |