fix for php warnings when running phpunit