]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Use assertRegExp polyfill instead of regexMatches 1575/head
authorArthurHoaro <arthur@hoa.ro>
Tue, 29 Sep 2020 16:49:02 +0000 (18:49 +0200)
committerArthurHoaro <arthur@hoa.ro>
Tue, 29 Sep 2020 16:57:25 +0000 (18:57 +0200)
tests/PluginManagerTest.php

index bbd2e142feb7b21f84f73869f4225e43e5c80c07..efef5e8746ed2b165d4902a1877a550cc007b462 100644 (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]
         );