Don't flag instances of print_r() within the tests/ directory.

In some cases, calls like `print_r( $data, true )` (return the printed array as a string) can be helpful for providing context if/when a test fails.
This commit is contained in:
Steve Grunwell 2018-01-15 17:12:33 +00:00
parent 00268c0fa2
commit 6fe6faf7ca
1 changed files with 3 additions and 0 deletions

View File

@ -54,4 +54,7 @@
<exclude-pattern>includes/**/abstract-*.php</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DevelopmentFunctions.error_log_print_r">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>