Replace expectExceptionMessageRegExp() with expectExceptionMessageMatches()

This commit is contained in:
Philipp 2021-05-23 23:09:49 +02:00
parent 280d0ee961
commit dda817cad8
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
5 changed files with 11 additions and 11 deletions

View file

@ -59,7 +59,7 @@ class ConfigFileLoaderTest extends MockedTest
*/
public function testLoadConfigWrong()
{
$this->expectExceptionMessageRegExp("/Error loading config file \w+/");
$this->expectExceptionMessageMatches("/Error loading config file \w+/");
$this->expectException(\Exception::class);
$this->delConfigFile('local.config.php');