From 5ff23f02b80ec6ddee28dee869171ee8e3656b7c Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 20 Jun 2016 18:30:37 +0200 Subject: Add closing PHP tags to JSON config files --- tests/config/ConfigJsonTest.php | 2 +- tests/utils/config/configInvalid.json.php | 1 + tests/utils/config/configJson.json.php | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/config/ConfigJsonTest.php b/tests/config/ConfigJsonTest.php index 359e9112..99c88820 100644 --- a/tests/config/ConfigJsonTest.php +++ b/tests/config/ConfigJsonTest.php @@ -88,7 +88,7 @@ class ConfigJsonTest extends PHPUnit_Framework_TestCase } else { $expected = '{"credentials":{"login":"root"},"resource":{"datastore":"data\/datastore.php"},"redirector":{"url":"lala"},"plugins":{"WALLABAG_VERSION":"1"}}'; } - $expected = ConfigJson::getPhpHeaders() . $expected; + $expected = ConfigJson::getPhpHeaders() . $expected . ConfigJson::getPhpSuffix(); $this->assertEquals($expected, file_get_contents($dataFile)); unlink($dataFile); } diff --git a/tests/utils/config/configInvalid.json.php b/tests/utils/config/configInvalid.json.php index c53e471d..167f2168 100644 --- a/tests/utils/config/configInvalid.json.php +++ b/tests/utils/config/configInvalid.json.php @@ -2,3 +2,4 @@ { bad: bad, } +*/ ?> \ No newline at end of file diff --git a/tests/utils/config/configJson.json.php b/tests/utils/config/configJson.json.php index c54882c3..06a302e8 100644 --- a/tests/utils/config/configJson.json.php +++ b/tests/utils/config/configJson.json.php @@ -30,3 +30,5 @@ "WALLABAG_VERSION": 1 } } +*/ ?> + -- cgit v1.2.3