diff --git a/jsonld.php b/jsonld.php index 31b00a7..7a97b3d 100644 --- a/jsonld.php +++ b/jsonld.php @@ -855,7 +855,7 @@ class JsonLdProcessor { 'jsonld.NullRemoteDocument'); } if(is_string($remote_doc->document)) { - $remote_doc->document = _parse_json($remote_doc->document); + $remote_doc->document = self::_parse_json($remote_doc->document); } } catch(Exception $e) { @@ -1017,7 +1017,7 @@ class JsonLdProcessor { 'jsonld.NullRemoteDocument'); } if(is_string($remote_frame->document)) { - $remote_frame->document = _parse_json($remote_frame->document); + $remote_frame->document = self::_parse_json($remote_frame->document); } } catch(Exception $e) { @@ -5100,7 +5100,7 @@ class JsonLdProcessor { // parse string context as JSON if(is_string($ctx)) { try { - $ctx = _parse_json($ctx); + $ctx = self::_parse_json($ctx); } catch(Exception $e) { throw new JsonLdException( diff --git a/test.php b/test.php index 215ff50..a88c82d 100644 --- a/test.php +++ b/test.php @@ -132,14 +132,13 @@ class JsonLdTestCase extends PHPUnit_Framework_TestCase { * @param JsonLdTest $test the test to run. * * @group normalize - * @depends toRdf * @dataProvider normalizeProvider */ public function testNormalize($test) { $this->test = $test; $input = $test->readUrl('input'); $options = $test->createOptions(array('format' => 'application/nquads')); - $test->run('jsonld_compact', array($input, $options)); + $test->run('jsonld_normalize', array($input, $options)); } public function expandProvider() {