/** * @covers Phossa\Event\EventDispatcher::one */ public function testOne() { $this->object->one('start', function ($evt) { echo "START"; }); $this->object->trigger('start'); $this->object->trigger('start'); $this->expectOutputString('START'); }