]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/PluginManagerTest.php
Compatibility with PHP 8
[github/shaarli/Shaarli.git] / tests / PluginManagerTest.php
index 38cd5ebaeeb05db58c435be68c08d1c4408acd9e..bbd2e142feb7b21f84f73869f4225e43e5c80c07 100644 (file)
@@ -81,8 +81,8 @@ class PluginManagerTest extends \Shaarli\TestCase
         $data = [];
         $this->pluginManager->executeHooks('error', $data);
 
-        $this->assertSame(
-            'test [plugin incompatibility]: Class \'Unknown\' not found',
+        $this->assertMatchesRegularExpression(
+            '/test \[plugin incompatibility\]: Class [\'"]Unknown[\'"] not found/',
             $this->pluginManager->getErrors()[0]
         );
     }