コード例 #1
0
 /**
  * @testdox  Tests that no event is triggered when the application does not have a dispatcher.
  *
  * @covers  JApplicationBase::triggerEvent
  */
 public function testTriggerEventWithNoDispatcher()
 {
     $this->class->setDispatcher($this->getMockDispatcher());
     // Validate the event was triggered
     $this->assertEmpty($this->class->triggerEvent('onJApplicationBaseTriggerEvent'));
 }