@@ 44-54 (lines=11) @@ | ||
41 | $this->assertTrue($run->isUpdateOnProcessOutput(), 'update on poll should be on by deafult'); |
|
42 | } |
|
43 | ||
44 | public function testUpdateOnPoll() |
|
45 | { |
|
46 | $process = Mockery::mock(Process::class); |
|
47 | $process->shouldReceive('stop'); |
|
48 | ||
49 | $run = new Run($process); |
|
50 | ||
51 | $this->assertTrue($run->isUpdateOnPoll()); |
|
52 | $this->assertSame($run, $run->setUpdateOnPoll(false)); |
|
53 | $this->assertFalse($run->isUpdateOnPoll()); |
|
54 | } |
|
55 | ||
56 | public function testUpdateOnProcessOutput() |
|
57 | { |
|
@@ 56-66 (lines=11) @@ | ||
53 | $this->assertFalse($run->isUpdateOnPoll()); |
|
54 | } |
|
55 | ||
56 | public function testUpdateOnProcessOutput() |
|
57 | { |
|
58 | $process = Mockery::mock(Process::class); |
|
59 | $process->shouldReceive('stop'); |
|
60 | ||
61 | $run = new Run($process); |
|
62 | ||
63 | $this->assertTrue($run->isUpdateOnProcessOutput()); |
|
64 | $this->assertSame($run, $run->setUpdateOnProcessOutput(false)); |
|
65 | $this->assertFalse($run->isUpdateOnProcessOutput()); |
|
66 | } |
|
67 | ||
68 | public function testProcessRunning() |
|
69 | { |