Is there a way to find errors caused by crafted input in php, such as naming POST-fields like variable[] instead of variable, causing PHP to implicitly convert it into an array, by using some form of automated testing? 
How to unit-test for PHP implicit conversion errors?
php;unit testing