Use assertRegExp polyfill instead of regexMatches
This commit is contained in:
parent
3a49307c3d
commit
d246e2c512
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace Shaarli\Plugin;
|
||||
|
||||
use Shaarli\Config\ConfigManager;
|
||||
|
@ -81,7 +82,7 @@ class PluginManagerTest extends \Shaarli\TestCase
|
|||
$data = [];
|
||||
$this->pluginManager->executeHooks('error', $data);
|
||||
|
||||
$this->assertMatchesRegularExpression(
|
||||
$this->assertRegExp(
|
||||
'/test \[plugin incompatibility\]: Class [\'"]Unknown[\'"] not found/',
|
||||
$this->pluginManager->getErrors()[0]
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue