Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function test_valueAdd_numeric() |
||
15 | { |
||
16 | $collection = new Collection(); |
||
17 | |||
18 | $collection->valueAdd('foe', 1); |
||
19 | self::assertSame(1, $collection->get('foe')); |
||
20 | |||
21 | $collection->valueAdd('foe', 2); |
||
22 | self::assertSame(3, $collection->get('foe')); |
||
23 | |||
24 | $collection->valueAdd('foe', 2); |
||
25 | self::assertSame(5, $collection->get('foe')); |
||
26 | } |
||
40 |