FloeDesignTechnologies / phpcs-security-audit

phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code
GNU General Public License v3.0
712 stars 85 forks source link

Misc/TypeJuggle: add unit tests + minor fix #76

Open jrfnl opened 4 years ago

jrfnl commented 4 years ago

Related to #57, follow up on #70, this PR adds unit tests for the Security.Misc.TypeJuggle sniff.

Commit Summary

Misc/TypeJuggle: add unit tests

Misc/TypeJuggle: use the build-in PHPCS functionality

The PHPCS addError() and addWarning() functions have a build-in string replacement sprintf()-like functionality, so let's use it.

jrfnl commented 4 years ago

Anything I can do to move this PR forward ?