Fix typos.

This commit is contained in:
Dave Longley 2013-09-14 22:02:37 -04:00
parent 0cf39870f5
commit 7142d8a3e1
2 changed files with 4 additions and 5 deletions

View file

@ -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(

View file

@ -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() {