@@ 28-41 (lines=14) @@ | ||
25 | ]); |
|
26 | } |
|
27 | ||
28 | public function testParallelExec() |
|
29 | { |
|
30 | $task = new \Robo\Task\Base\ParallelExec(); |
|
31 | $task->setLogger($this->guy->logger()); |
|
32 | ||
33 | $result = $task |
|
34 | ->process('ls 1') |
|
35 | ->process('ls 2') |
|
36 | ->process('ls 3') |
|
37 | ->run(); |
|
38 | $this->process->verifyInvokedMultipleTimes('start', 3); |
|
39 | verify($result->getExitCode())->equals(0); |
|
40 | $this->guy->seeInOutput("3 processes finished"); |
|
41 | } |
|
42 | ||
43 | public function testParallelExecWithWaitInterval() |
|
44 | { |
|
@@ 43-57 (lines=15) @@ | ||
40 | $this->guy->seeInOutput("3 processes finished"); |
|
41 | } |
|
42 | ||
43 | public function testParallelExecWithWaitInterval() |
|
44 | { |
|
45 | $task = new \Robo\Task\Base\ParallelExec(); |
|
46 | $task->setLogger($this->guy->logger()); |
|
47 | ||
48 | $result = $task |
|
49 | ->process('ls 1') |
|
50 | ->process('ls 2') |
|
51 | ->process('ls 3') |
|
52 | ->waitInterval(1) |
|
53 | ->run(); |
|
54 | $this->process->verifyInvokedMultipleTimes('start', 3); |
|
55 | verify($result->getExitCode())->equals(0); |
|
56 | $this->guy->seeInOutput("3 processes finished"); |
|
57 | } |
|
58 | } |
|
59 |