aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-29 18:49:02 +0200
committerArthurHoaro <arthur@hoa.ro>2020-09-29 18:57:25 +0200
commitd246e2c5129fe8d3f8e1429b4e8ff8e3e486c779 (patch)
treee01a15c45f5da03b7cb97070d46dfe89f51e8655 /tests
parent3a49307c3d193d022aa10d6597c4db189486f18f (diff)
downloadShaarli-d246e2c5129fe8d3f8e1429b4e8ff8e3e486c779.tar.gz
Shaarli-d246e2c5129fe8d3f8e1429b4e8ff8e3e486c779.tar.zst
Shaarli-d246e2c5129fe8d3f8e1429b4e8ff8e3e486c779.zip
Use assertRegExp polyfill instead of regexMatches
Diffstat (limited to 'tests')
-rw-r--r--tests/PluginManagerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PluginManagerTest.php b/tests/PluginManagerTest.php
index bbd2e142..efef5e87 100644
--- a/tests/PluginManagerTest.php
+++ b/tests/PluginManagerTest.php
@@ -1,4 +1,5 @@
1<?php 1<?php
2
2namespace Shaarli\Plugin; 3namespace Shaarli\Plugin;
3 4
4use Shaarli\Config\ConfigManager; 5use Shaarli\Config\ConfigManager;
@@ -81,7 +82,7 @@ class PluginManagerTest extends \Shaarli\TestCase
81 $data = []; 82 $data = [];
82 $this->pluginManager->executeHooks('error', $data); 83 $this->pluginManager->executeHooks('error', $data);
83 84
84 $this->assertMatchesRegularExpression( 85 $this->assertRegExp(
85 '/test \[plugin incompatibility\]: Class [\'"]Unknown[\'"] not found/', 86 '/test \[plugin incompatibility\]: Class [\'"]Unknown[\'"] not found/',
86 $this->pluginManager->getErrors()[0] 87 $this->pluginManager->getErrors()[0]
87 ); 88 );