public function testThrowsExceptionWhenNoRecepientWasAdded() { $this->setExpectedException(\UnexpectedValueException::class, 'message must have at least one recipient'); $this->fixture->jsonSerialize(); }