diff --git a/tests/Helper/ShellTest.php b/tests/Helper/ShellTest.php index 9302486..62653ff 100644 --- a/tests/Helper/ShellTest.php +++ b/tests/Helper/ShellTest.php @@ -24,7 +24,7 @@ public function test_get_output() $shell->execute(); - $this->assertSame("hello\n", $shell->getOutput()); + $this->assertSame("hello", trim($shell->getOutput())); // trim to remove trailing newline which is OS dependent $this->assertSame(0, $shell->getExitCode()); } @@ -35,7 +35,7 @@ public function test_get_process_id() $shell->execute(true); $this->assertIsInt($pid = $shell->getProcessId()); - $this->assertGreaterThan(getmypid(), $pid); + // $this->assertGreaterThan(getmypid(), $pid); // this is not always true especially on windows } public function test_async_stop()