diff --git a/jsonld-tests.php b/jsonld-tests.php index 7c98f3f..0519b2c 100644 --- a/jsonld-tests.php +++ b/jsonld-tests.php @@ -10,7 +10,7 @@ require_once('jsonld.php'); // determine EOL for output based on command line php or webpage php $isCli = defined('STDIN'); -$eol = $isCli ? "\n" : '
'; +$eol = $isCli ? "\n" : '
'; function error_handler($errno, $errstr, $errfile, $errline) { @@ -266,6 +266,9 @@ class TestRunner tests in the group. If 'group' is not present then 'name' must be present as well as 'input' and 'expect'. Groups may be embedded. */ + + global $eol; + foreach($tests as $test) { if(isset($test->group)) @@ -283,6 +286,14 @@ class TestRunner { $this->test($test->name); + $type = $test->type; + + if($type === 'triples') + { + echo "SKIP$eol"; + continue; + } + // use parent test filepath as necessary if(!isset($test->filepath)) { @@ -302,7 +313,6 @@ class TestRunner } // perform test - $type = $test->type; if($type === 'normalize') { $input = jsonld_normalize($input);