hasBeenSignaled() 공개 메소드

It always returns false on Windows.
public hasBeenSignaled ( ) : boolean
리턴 boolean
예제 #1
0
 public function testStop()
 {
     $process = new Process('php -r "while (true) {}"');
     $process->start();
     $this->assertTrue($process->isRunning());
     $process->stop();
     $this->assertFalse($process->isRunning());
     // skip this check on windows since it does not support signals
     if (!defined('PHP_WINDOWS_VERSION_MAJOR')) {
         $this->assertTrue($process->hasBeenSignaled());
     }
 }
예제 #2
0
 public function testStop()
 {
     $process = new Process('php -r "while (true) {}"');
     $process->start();
     $this->assertTrue($process->isRunning());
     $process->stop();
     $this->assertFalse($process->isRunning());
     $this->assertTrue($process->hasBeenSignaled());
 }