Fix phpunit testing with version > 3.7