Make test pass with PHP 5.7