Fix phpunit

This commit is contained in:
Laurent Destailleur
2023-06-19 19:34:57 +02:00
parent 9a55b924e1
commit 927768ea98

View File

@@ -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] != '*') {