Skip to content

Commit

Permalink
remove the duplicate test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Mar 11, 2018
1 parent 882c1e9 commit 76695ef
Showing 1 changed file with 0 additions and 59 deletions.
59 changes: 0 additions & 59 deletions test/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,65 +270,6 @@ public function testProcessHasBeenStarted() {
});
}

/**
* @expectedException \Amp\Process\StatusError
* @expectedExceptionMessage Process has not been started.
*/
public function testProcessHasNotBeenStartedWithGetPid() {
Loop::run(function () {
$process = new Process(self::CMD_PROCESS);
$promise = $process->getPid();

yield $promise;
});
}

/**
* @expectedException \Amp\Process\StatusError
* @expectedExceptionMessage Process is not running.
*/
public function testProcessIsNotRunningWithKill() {
Loop::run(function () {
$process = new Process(self::CMD_PROCESS);

$process->kill();

yield $promise;
});
}

/**
* @expectedException \Amp\Process\StatusError
* @expectedExceptionMessage Process is not running.
*/
public function testProcessIsNotRunningWithSignal() {
Loop::run(function () {
$process = new Process(self::CMD_PROCESS);

$process->signal(0);

yield $promise;
});
}

/**
* @expectedException \Amp\Process\StatusError
* @expectedExceptionMessage Process has not been started.
*/
public function testProcessHasBeenStarted() {
Loop::run(function () {
$process = new Process(self::CMD_PROCESS);
$promise = $process->join();

yield $promise;
});
}

public function testCommand() {
$process = new Process([self::CMD_PROCESS]);
$this->assertSame(\implode(" ", \array_map("escapeshellarg", [self::CMD_PROCESS])), $process->getCommand());
}

public function testOptions() {
$process = new Process(self::CMD_PROCESS);
$this->assertSame([], $process->getOptions());
Expand Down

0 comments on commit 76695ef

Please sign in to comment.