2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/test/phpunit
MDW acd8168cb6 Fix: Fix var_dump checker (#28226)
* Fix: Fix var_dump checker

# Fix: Fix var_dump checker

The core issue was that in PHP whitespace includes newlines by default, the m modifier
is needed to not match multilines.

* Fix: Allow multiple var_dumps on single comment line, refactor

# Fix: Allow multiple var_dumps on single comment line, refactor

Updated the regex to not match a var_dump preceeded with a comment
somewhere on the line.

Refactored var_dump check in dedicated method.

* Qual: Test the test function !

# Qual: Test the test function !

Test that the test function detecting var_dump does detect them.

* Qual: CodingPhpTest - remove comments from file before checking

# Qual: CodingPhpTest - remove comments from file before checking

This helps remove false positives and may have a positive impact on performance.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-25 22:08:07 +01:00
..
2024-02-24 18:05:42 +01:00
2024-02-21 12:46:20 +01:00
2024-02-17 15:50:51 +01:00
2024-02-20 01:17:00 +01:00
2024-02-20 14:58:46 +01:00