diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/HTMLParserTest.php | 2 | ||||
-rw-r--r-- | test/test-pages/ars-1/config.json | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/HTMLParserTest.php b/test/HTMLParserTest.php index 2db0443..673a1d5 100644 --- a/test/HTMLParserTest.php +++ b/test/HTMLParserTest.php @@ -42,7 +42,7 @@ class HTMLParserTest extends \PHPUnit_Framework_TestCase $expectedMetadata = file_get_contents($path . DIRECTORY_SEPARATOR . $testPage . DIRECTORY_SEPARATOR . 'expected-metadata.json'); $config = file_get_contents($path . DIRECTORY_SEPARATOR . $testPage . DIRECTORY_SEPARATOR . 'config.json'); if ($config) { - $config = json_decode($config); + $config = json_decode($config, true); } $pages[$testPage] = [$source, $expectedHTML, $expectedMetadata, $config]; diff --git a/test/test-pages/ars-1/config.json b/test/test-pages/ars-1/config.json new file mode 100644 index 0000000..6441edf --- /dev/null +++ b/test/test-pages/ars-1/config.json @@ -0,0 +1,3 @@ +{ + "articleByLine": true +}
\ No newline at end of file |