stopPropagation() public method

Stops the propagation of the event
public stopPropagation ( )
Exemplo n.º 1
0
 /**
  * @covers Imbo\EventManager\Event::stopPropagation
  * @covers Imbo\EventManager\Event::isPropagationStopped
  */
 public function testCanStopPropagation()
 {
     $this->assertFalse($this->event->isPropagationStopped());
     $this->assertSame($this->event, $this->event->stopPropagation());
     $this->assertTrue($this->event->isPropagationStopped());
 }