public function testSetters() { $event = new ApiExceptionEvent(new Exception()); $event->setException(new InvalidArgumentException()); $this->assertInstanceOf(InvalidArgumentException::class, $event->getException()); }