Fix constant  deprecated in Enviroment class for PHP 5.5, that was breaking mock method when running integration tests