public function testTriggeringEventFromItself() { $event = new \Nano\Event('test-event'); $this->manager->attach($event->getType(), 'library_events_handler_f1'); $event->trigger($this->manager); self::assertEquals(1, $event->getArgument('runs')); }
public function testPassingEventTypesIntoContructor() { $event = new \Nano\Event('some-type'); self::assertEquals('some-type', $event->getType()); }