1..72 # ->getLanguages() ok 1 - ->getLanguages() returns an empty array if the client do not send an ACCEPT_LANGUAGE header ok 2 - ->getLanguages() returns an empty array if the client send an empty ACCEPT_LANGUAGE header ok 3 - ->getLanguages() returns an array with all accepted languages # ->getPreferredCulture() ok 4 - ->getPreferredCulture() returns the first given culture if the client do not send an ACCEPT_LANGUAGE header ok 5 - ->getPreferredCulture() returns the preferred culture ok 6 - ->getPreferredCulture() returns the preferred culture # ->getCharsets() ok 7 - ->getCharsets() returns an empty array if the client do not send an ACCEPT_CHARSET header ok 8 - ->getCharsets() returns an empty array if the client send an empty ACCEPT_CHARSET header ok 9 - ->getCharsets() returns an array with all accepted charsets # ->getAcceptableContentTypes() not ok 10 - ->getAcceptableContentTypes() returns an empty array if the client do not send an ACCEPT header # Failed test (./sfWebRequestTest.php at line 96) # got: array ( 0 => '*/*', ) # expected: array ( ) ok 11 - ->getAcceptableContentTypes() returns an empty array if the client send an empty ACCEPT header ok 12 - ->getAcceptableContentTypes() returns an array with all accepted content types # ->splitHttpAcceptHeader() ok 13 - ->splitHttpAcceptHeader() returns an empty array if the header is empty ok 14 - ->splitHttpAcceptHeader() returns an array of values ok 15 - ->splitHttpAcceptHeader() strips the q value ok 16 - ->splitHttpAcceptHeader() sorts values by the q value ok 17 - ->splitHttpAcceptHeader() trims whitespaces ok 18 - ->splitHttpAcceptHeader() removes values when q = 0 (as per the RFC) # ->getRequestFormat() ->setRequestFormat() ok 19 - ->getRequestFormat() returns null if the format is not defined in the request ok 20 - ->getRequestFormat() returns the request format ok 21 - ->setRequestFormat() sets the request format # ->getFormat() ->setFormat() ok 22 - ->getFormat() returns the format for the given mime type ok 23 - ->setFormat() can take an array of mime types ok 24 - ->getFormat() returns null if the mime type does not exist # ->getMimeType() ok 25 - ->getMimeType() returns the first mime type for the given format ok 26 - ->getMimeType() returns null if the format does not exist # ->isSecure() ok 27 - ->isSecure() returns false if request is not secure ok 28 - ->isSecure() checks the HTTPS environment variable ok 29 - ->isSecure() checks the HTTPS environment variable ok 30 - ->isSecure() checks the HTTPS environment variable ok 31 - ->isSecure() checks the HTTP_SSL_HTTPS environment variable ok 32 - ->isSecure() checks the HTTP_SSL_HTTPS environment variable ok 33 - ->isSecure() checks the HTTP_SSL_HTTPS environment variable ok 34 - ->isSecure() checks the HTTP_X_FORWARDED_PROTO environment variable # ->getUriPrefix() not ok 35 - ->getUriPrefix() returns no port for standard http port # Failed test (./sfWebRequestTest.php at line 172) # got: 'https://symfony-project.org' # expected: 'http://symfony-project.org' not ok 36 - ->getUriPrefix() works fine with no port in HTTP_HOST # Failed test (./sfWebRequestTest.php at line 174) # got: 'https://symfony-project.org' # expected: 'http://symfony-project.org' not ok 37 - ->getUriPrefix() works for nonstandard http ports # Failed test (./sfWebRequestTest.php at line 176) # got: 'https://symfony-project.org' # expected: 'http://symfony-project.org:8088' ok 38 - ->getUriPrefix() returns no port for standard https port ok 39 - ->getUriPrefix() works fine with no port in HTTP_HOST not ok 40 - ->getUriPrefix() works for nonstandard https ports # Failed test (./sfWebRequestTest.php at line 186) # got: 'https://symfony-project.org' # expected: 'https://symfony-project.org:8043' not ok 41 - ->getUriPrefix() uses the SERVER_PORT environment variable # Failed test (./sfWebRequestTest.php at line 191) # got: 'https://symfony-project.org' # expected: 'http://symfony-project.org:8080' not ok 42 - ->getUriPrefix() uses the SERVER_PORT environment variable # Failed test (./sfWebRequestTest.php at line 197) # got: 'https://symfony-project.org' # expected: 'https://symfony-project.org:8043' not ok 43 - ->getUriPrefix() uses the configured port # Failed test (./sfWebRequestTest.php at line 202) # got: 'https://symfony-project.org' # expected: 'http://symfony-project.org:8080' ok 44 - ->getUriPrefix() uses the configured port ok 45 - ->getUriPrefix() works on secure requests forwarded as non-secure requests ok 46 - ->getUriPrefix() uses the configured port on secure requests forwarded as non-secure requests # ->getRemoteAddress() ok 47 - ->getRemoteAddress() returns the remote address # ->getForwardedFor() not ok 48 - ->getForwardedFor() returns null if the request was not forwarded. # Failed test (./sfWebRequestTest.php at line 236) # got: array ( 0 => '3.144.39.255', ) # expected: NULL ok 49 - ->getForwardedFor() returns the value from HTTP_X_FORWARDED_FOR # ->getMethod() ok 50 - ->getMethod() returns the sf_method parameter value if it exists and if the method is POST ok 51 - ->getMethod() returns the sf_method parameter value if it exists and if the method is POST ok 52 - ->getMethod() returns the sf_method parameter value if it exists and if the method is POST # ->getScriptName() ok 53 - ->getScriptName() returns the script name ok 54 - ->getScriptName() returns the script name if SCRIPT_NAME not set it use ORIG_SCRIPT_NAME ok 55 - ->getScriptName() returns the script name if SCRIPT_NAME and ORIG_SCRIPT_NAME not set it return empty # ->getPathInfo() ok 56 - check if default path_info_key is PATH_INFO ok 57 - ->getPathInfo() returns the url path value ok 58 - ->getPathInfo() returns the url path value use path_info_key ok 59 - ->getPathInfo() returns the url path value if it not exists use default REQUEST_URI ok 60 - ->getPathInfo() returns the url path value if it not exists use default REQUEST_URI without query not ok 61 - ->getPathInfo() returns the url path value if it not exists use default / # Failed test (./sfWebRequestTest.php at line 306) # got: '/test/klaus2' # expected: '/' # getPathInfo ok 62 - ->getRequestParameters() returns the request parameters default array ok 63 - ->getRequestParameters() returns the request parameters ok 64 - ->getRequestParameters() returns the request parameters allready exists ok 65 - ->getRequestParameters() returns the request parameters check fixParameters call for special _sf_ params ok 66 - ->getAttribute() check special param is set as attribute # ->checkCSRFProtection() ok 67 - ->checkCSRFProtection() throws a validator error if CSRF protection fails ok 68 - ->checkCSRFProtection() checks token from BaseForm # ->getContentType() ok 69 - ->getContentType() returns the content type ok 70 - ->getContentType() strips the charset information by default ok 71 - ->getContentType() does not strip the charset information by defaultif you pass false as the first argument # ->getHost() ok 72 - ->getHost() returns the last forwarded host # Looks like you failed 10 tests of 72.