/** * @dataProvider getAddressTestData */ public function testJsonAddressTestValidate($data, $schema) { $schemaIndex = new JsonSchemaIndex($schema); $this->assertEquals($schemaIndex->root['type'], 'array'); $nodename = isset($schema['title']) ? $schema['title'] : "Root node"; $rootschema = $schemaIndex->newRef($schema, null, null, $nodename); $rootjson = new JsonTreeRef($data, null, null, $nodename, $rootschema); $this->assertEquals($rootjson->getTitle(), 'Address Book'); return $schemaIndex; }