/** * @expectedException JsonSchema\Exception\ResourceNotFoundException */ public function testResolvePointerFragmentNoArray() { $schema = (object) array('definitions' => (object) array('foo' => array('title' => 'foo')), 'title' => 'schema'); $retriever = new \JsonSchema\Uri\UriRetriever(); $retriever->resolvePointer($schema, 'http://example.org/schema.json#/definitions/foo'); }