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 <?php
namespace Shaarli\Plugin; namespace Shaarli\Plugin;
use Shaarli\Config\ConfigManager; use Shaarli\Config\ConfigManager;
@ -81,7 +82,7 @@ public function testPluginWithPhpError(): void
$data = []; $data = [];
$this->pluginManager->executeHooks('error', $data); $this->pluginManager->executeHooks('error', $data);
$this->assertMatchesRegularExpression( $this->assertRegExp(
'/test \[plugin incompatibility\]: Class [\'"]Unknown[\'"] not found/', '/test \[plugin incompatibility\]: Class [\'"]Unknown[\'"] not found/',
$this->pluginManager->getErrors()[0] $this->pluginManager->getErrors()[0]
); );