| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function testOptions() |
||
| 19 | { |
||
| 20 | $delay = rand(1, 100); |
||
| 21 | $memory = rand(128, 2048); |
||
| 22 | $timeout = rand(60, 3600); |
||
| 23 | $sleep = rand(0, 60); |
||
| 24 | $maxTries = rand(1, 10); |
||
| 25 | $force = (bool)rand(0, 1); |
||
| 26 | |||
| 27 | $options = new Options($delay, $memory, $timeout, $sleep, $maxTries, $force); |
||
| 28 | |||
| 29 | $this->assertEquals($delay, $options->delay); |
||
| 30 | $this->assertEquals($memory, $options->memory); |
||
| 31 | $this->assertEquals($timeout, $options->timeout); |
||
| 32 | $this->assertEquals($sleep, $options->sleep); |
||
| 33 | $this->assertEquals($maxTries, $options->maxTries); |
||
| 34 | $this->assertEquals($force, $options->force); |
||
| 35 | } |
||
| 36 | } |