Use assertRegExp polyfill instead of regexMatches

This commit is contained in:
ArthurHoaro 2020-09-29 18:49:02 +02:00
parent 3a49307c3d
commit d246e2c512

View file

@ -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]
);