public function testStandardEvent()
{
$xml = '<event key="core/test">
<call>Jarves\\Tests\\Configuration\\EventTest::fireEvent</call>
</event>';
$event = new Event($xml, $this->getJarves());
$this->getJarvesEventDispatcher()->detachEvents();
$this->getJarvesEventDispatcher()->attachEvent($event);
$this->assertCount(1, $this->getJarvesEventDispatcher()->getAttachedEvents());
self::$fired = 0;
$this->getEventDispatcher()->dispatch('core/test', new GenericEvent('foo'));
$this->assertEquals(1, self::$fired);
$this->getEventDispatcher()->dispatch('core/test', new GenericEvent('2'));
$this->getEventDispatcher()->dispatch('core/test', new GenericEvent('3'));
$this->assertEquals(3, self::$fired);
$this->getJarvesEventDispatcher()->detachEvents();
}