Example #1
0
 public function testRemoveNotLastListener()
 {
     $pcntl = new PCNTL($this->loop);
     $pcntl->on(SIGTERM, function () {
     });
     $secondListener = function () {
     };
     $pcntl->on(SIGTERM, $secondListener);
     $pcntl->removeListener(SIGTERM, $secondListener);
     $this->assertNotEquals(SIG_DFL, self::$pcntl_signal_args[SIGTERM]);
 }