assertEquals('Failed to match all schemas', $e->getMessage()); } public function testGetInvalidMessage(): void { $e = ConstraintError::MISSING_ERROR(); $this->expectException('\JsonSchema\Exception\InvalidArgumentException'); $this->expectExceptionMessage('Missing error message for missingError'); $e->getMessage(); } }