/**
* Class ConfigJsonTest
*/
-class ConfigJsonTest extends \PHPUnit\Framework\TestCase
+class ConfigJsonTest extends \Shaarli\TestCase
{
/**
* @var ConfigJson
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');
}
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.
*/