Skip to content

Commit

Permalink
Fix testProcessEnvIsValid and skip signal test
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Dec 5, 2017
1 parent 63ef6dd commit 2591a9c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public function testCommandArray() {
}

public function testProcessCanTerminate() {
if (\DIRECTORY_SEPARATOR === "\\") {
$this->markTestSkipped("Signals are not supported on Windows");
}

Loop::run(function () {
$process = new Process(self::CMD_PROCESS);
$process->start();
Expand Down Expand Up @@ -137,11 +141,11 @@ public function testGetStderrIsCustomized() {

public function testProcessEnvIsValid() {
$process = new Process(self::CMD_PROCESS, null, [
'env_value'
'env_name' => 'env_value'
]);
$process->start();
$promise = $process->join();
$this->assertSame('env_value', $process->getEnv()[0]);
$this->assertSame('env_value', $process->getEnv()['env_name']);
}

/**
Expand Down

0 comments on commit 2591a9c

Please sign in to comment.