PHPUnit stops with PHP Fatal error

This patch will allow PHPUnit to run all unit tests without PHP Fatal errors