Source of file JSONHarness.php
Size: 0,586 Bytes - Last Modified: 2021-12-23T10:31:58+00:00
/var/www/docs.ssmods.com/process/src/thirdparty/html5lib-php/tests/HTML5/JSONHarness.php
12345678910111213141516171819202122 | <?php /** * Implementation specifically for JSON format files. */ SimpleTest::ignore('HTML5_JSONHarness'); abstract class HTML5_JSONHarness extends HTML5_DataHarness { protected $data; public function __construct() { parent::__construct(); $this->data = json_decode(file_get_contents($this->filename)); } public function getDescription($test) { return $test->description; } public function getDataTests() { return isset($this->data->tests) ? $this->data->tests : array(); // could be a weird xmlViolationsTest } } |