Пример #1
0
 public function testSignalWithStoppedPropogation()
 {
     $signal = new Signal(9, 1);
     $this->assertFalse($signal->isPropagationStopped());
     $signal->stopPropagation();
     $this->assertTrue($signal->isPropagationStopped());
 }
Пример #2
0
 /**
  * @param Signal $signal
  *
  * @return $this
  */
 public function send(Signal $signal) : self
 {
     $destination = $signal->getDestination();
     $this->getPosix()->kill($destination, $signal->getSignalNo());
     return $this;
 }