Fixing PHP 5.6 compatibility in tests