diff options
Diffstat (limited to 'tests/PHPUnit/Integration/CliMulti/ProcessTest.php')
-rw-r--r-- | tests/PHPUnit/Integration/CliMulti/ProcessTest.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/CliMulti/ProcessTest.php b/tests/PHPUnit/Integration/CliMulti/ProcessTest.php index 383733de53..229a687587 100644 --- a/tests/PHPUnit/Integration/CliMulti/ProcessTest.php +++ b/tests/PHPUnit/Integration/CliMulti/ProcessTest.php @@ -121,11 +121,20 @@ class ProcessTest extends \PHPUnit\Framework\TestCase $this->assertTrue($this->process->hasFinished()); } - public function test_hasStarted() + public function test_hasStarted_startedWhenContentFalse() { $this->assertTrue($this->process->hasStarted(false)); + } + + public function test_hasStarted_startedWhenPidGiven() + { $this->assertTrue($this->process->hasStarted('6341')); + // remembers the process was started at some point + $this->assertTrue($this->process->hasStarted('')); + } + public function test_hasStarted_notStartedYetEmptyContentInPid() + { $this->assertFalse($this->process->hasStarted('')); } |