schemaValidator = new SchemaValidator(new ObjectRetriever); } public function testAddress() { $this->schemaValidator->validateAgainstCOID([ 'locality' => 'Frankfurt', 'region' => 'Hessen', 'country-name' => 'Germany' ], new IRI('coid://json.co-n.net/Address')); $this->addToAssertionCount(1); } public function testNotAddress() { $this->expectException(InvalidArgumentException::class); $this->schemaValidator->validateAgainstCOID([ 'region' => 'Hessen', 'country-name' => 'Germany' ], new IRI('coid://json.co-n.net/Address')); } }