| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 10 | public function a_counter_can_seed_simple_test() | ||
| 11 |     { | ||
| 12 | // create Counters | ||
| 13 | //This will create a counter with inital value as 3, and every increment 5 will be added. | ||
| 14 | $counter = Counter::create([ | ||
| 15 | 'key' => 'number_of_downloads', | ||
| 16 | 'name' => 'Visitors', | ||
| 17 | 'initial_value' => 3, | ||
| 18 | 'step' => 5 | ||
| 19 | ]); | ||
| 20 | |||
| 21 |         $this->assertEquals('number_of_downloads', $counter->key); | ||
| 22 |         $this->assertEquals('Visitors', $counter->name); | ||
| 23 | $this->assertEquals(3, $counter->initial_value); | ||
| 24 | $this->assertEquals(5, $counter->step); | ||
| 25 | } | ||
| 38 | } |