X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fconfig%2FConfigJsonTest.php;h=c0ba5b8f07c1c0513ae26050408b3c76f326b9ae;hb=5b5d22a3df1ba948d39524b997ea4c82ee70e646;hp=f884b0c628842ecb14a99a14b0411a562b35816e;hpb=769a28833b68f4c629c5578348b31d51016fbf6f;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/config/ConfigJsonTest.php b/tests/config/ConfigJsonTest.php index f884b0c6..c0ba5b8f 100644 --- a/tests/config/ConfigJsonTest.php +++ b/tests/config/ConfigJsonTest.php @@ -4,7 +4,7 @@ namespace Shaarli\Config; /** * Class ConfigJsonTest */ -class ConfigJsonTest extends \PHPUnit\Framework\TestCase +class ConfigJsonTest extends \Shaarli\TestCase { /** * @var ConfigJson @@ -42,7 +42,7 @@ class ConfigJsonTest extends \PHPUnit\Framework\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 \PHPUnit\Framework\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. */