allow tests to pass with PHP 5.4