| Conditions | 5 |
| Paths | 7 |
| Total Lines | 22 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function testIsSuccessful() |
||
| 48 | { |
||
| 49 | $pid = pcntl_fork(); |
||
| 50 | if ($pid > 0) { |
||
| 51 | pcntl_wait($status); |
||
| 52 | $status = new Status($status); |
||
| 53 | $this->assertFalse($status->isSuccessful()); |
||
| 54 | } elseif ($pid == 0) { |
||
| 55 | usleep(100); |
||
| 56 | exit(2); |
||
| 57 | } |
||
| 58 | sleep(1); |
||
| 59 | $pid = pcntl_fork(); |
||
| 60 | if ($pid > 0) { |
||
| 61 | pcntl_wait($status2); |
||
| 62 | $status = new Status($status2); |
||
| 63 | $this->assertTrue($status->isSuccessful()); |
||
| 64 | } elseif ($pid == 0) { |
||
| 65 | usleep(100); |
||
| 66 | exit; |
||
| 67 | } |
||
| 68 | } |
||
| 69 | |||
| 74 |