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