forked from friendica/php-json-ld
Fix typos.
This commit is contained in:
parent
0cf39870f5
commit
7142d8a3e1
|
@ -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(
|
||||
|
|
3
test.php
3
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() {
|
||||
|
|
Loading…
Reference in a new issue