Beispiel #1
0
 /**
  * Remove an event from the set of monitored events.
  *
  * @see event_del
  *
  * @param bool $baseCall To prevent infinite loop
  *
  * @throws EventException if can't delete event
  *
  * @return void
  */
 protected function remove($baseCall)
 {
     if (false === event_del($this->resource)) {
         throw $this->exception('Could not delete event (event_del).');
     }
     if (false === $baseCall) {
         $this->base->disableEvent($this->name);
     }
 }
Beispiel #2
0
 /**
  * @depends testBaseException
  * @expectedException \PHPUnit_Framework_Error
  */
 public function testBaseExceptionOnPrioritySet(EventBaseInterface $base)
 {
     $base->setPriority(EventBase::DEFAULT_PRIORITY);
 }