PHPUnit test for Request class bought about an error because the function has been renamed.