public function testEventThrowAnExceptionIfResultsAreAccededBeforeAnyCallbacksHasRun() { $event = new Event(); $this->expectsException(function () use($event) { $event->getResults(); }, Exception::class, null, Exception::EVENT_IS_NOT_TRIGGERED_YET); }