Fixed mock for PHP 5.4