From ab58f2542072e6bf34acd862f6cfed84b33feb29 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 29 Sep 2020 15:00:11 +0200 Subject: Compatibility with PHP 8 --- tests/config/ConfigJsonTest.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'tests/config') diff --git a/tests/config/ConfigJsonTest.php b/tests/config/ConfigJsonTest.php index 4f508925..c0ba5b8f 100644 --- a/tests/config/ConfigJsonTest.php +++ b/tests/config/ConfigJsonTest.php @@ -42,7 +42,7 @@ class ConfigJsonTest extends \Shaarli\TestCase public function testReadInvalidJson() { $this->expectException(\Exception::class); - $this->expectExceptionMessageRegExp(' /An error occurred while parsing JSON configuration file \\([\\w\\/\\.]+\\): error code #4/'); + $this->expectExceptionMessageRegExp('/An error occurred while parsing JSON configuration file \\([\\w\\/\\.]+\\): error code #4/'); $this->configIO->read('tests/utils/config/configInvalid.json.php'); } @@ -108,17 +108,6 @@ class ConfigJsonTest extends \Shaarli\TestCase unlink($dest); } - /** - * Write to invalid path. - */ - public function testWriteInvalidArray() - { - $this->expectException(\Shaarli\Exceptions\IOException::class); - - $conf = array('conf' => 'value'); - @$this->configIO->write(array(), $conf); - } - /** * Write to invalid path. */ -- cgit v1.2.3