From 927768ea98b010a30df7ab6c831d6c34844b91c0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 19 Jun 2023 19:34:57 +0200 Subject: [PATCH] Fix phpunit --- test/phpunit/CodingPhpTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/phpunit/CodingPhpTest.php b/test/phpunit/CodingPhpTest.php index 61cd996f079..924191ffb59 100644 --- a/test/phpunit/CodingPhpTest.php +++ b/test/phpunit/CodingPhpTest.php @@ -270,7 +270,7 @@ class CodingPhpTest extends PHPUnit\Framework\TestCase if (!preg_match('/test\/phpunit/', $file['fullname'])) { $ok=true; $matches=array(); - preg_match_all('/(.)\s*var_dump/', $filecontent, $matches, PREG_SET_ORDER); + preg_match_all('/(.)\s*var_dump\(/', $filecontent, $matches, PREG_SET_ORDER); //var_dump($matches); foreach ($matches as $key => $val) { if ($val[1] != '/' && $val[1] != '*') {