1..83 # ->initialize() - takes a option - takes a option # ->getStatusCode() ->setStatusCode() - returns 200 by default - sets status code - also sets the status text associated with the status code if no message is given - takes a message as its second argument as the status text - takes a message as its second argument as the status text # ->hasHttpHeader() - returns false if http header is not set - returns true if http header is not set - normalizes http header name # ->getHttpHeader() - returns the current http header values - normalizes http header name # ->setHttpHeader() - takes a replace argument as its third argument - takes a replace argument as its third argument - normalizes http header name # ->clearHttpHeaders() - clears all current http headers # ->getHttpHeaders() - return all current response http headers # Failed test (./sfWebResponseTest.php at line 87) # got: array ( 'My\'-\'Header' => 'foo, bar', 'Another' => 'foo', ) # expected: array ( 'My-Header' => 'foo, bar', 'Another' => 'foo', ) # ->normalizeHeaderName() - normalizes http header name - normalizes http header name - normalizes http header name - normalizes http header name # Failed test (./sfWebResponseTest.php at line 103) # got: 'My\'-\'Header' # expected: 'My-Header' - normalizes http header name # Failed test (./sfWebResponseTest.php at line 103) # got: 'My\'-\'Header' # expected: 'My-Header' - normalizes http header name # Failed test (./sfWebResponseTest.php at line 103) # got: 'My\'-\'Header' # expected: 'My-Header' - normalizes http header name # Failed test (./sfWebResponseTest.php at line 103) # got: 'My\'-\'Header\'-\'Is\'-\'Very\'-\'Long' # expected: 'My-Header-Is-Very-Long' - normalizes http header name # Failed test (./sfWebResponseTest.php at line 103) # got: 'Content\'-\'Type' # expected: 'Content-Type' - normalizes http header name # Failed test (./sfWebResponseTest.php at line 103) # got: 'Content\'-\'Type' # expected: 'Content-Type' # ->getContentType() ->setContentType() ->getCharset() - returns a sensible default value - returns the current charset of the response - adds a charset if none is given # Failed test (./sfWebResponseTest.php at line 114) # got: 'text/html; charset=utf-8' # expected: 'text/xml; charset=utf-8' - adds a charset if none is given # Failed test (./sfWebResponseTest.php at line 117) # got: 'text/html; charset=utf-8' # expected: 'application/vnd.mozilla.xul+xml; charset=utf-8' - returns the current charset of the response - does not add a charset if the content-type is not text/* # Failed test (./sfWebResponseTest.php at line 121) # got: 'text/html; charset=utf-8' # expected: 'image/jpg' - does nothing if a charset is given # Failed test (./sfWebResponseTest.php at line 124) # got: 'text/html; charset=utf-8' # expected: 'text/xml; charset=ISO-8859-1' - returns the current charset of the response - does nothing if a charset is given # Failed test (./sfWebResponseTest.php at line 128) # got: 'text/html; charset=utf-8' # expected: 'text/xml;charset = ISO-8859-1' - returns the current charset of the response - is an alias for ->getHttpHeader('content-type') # Failed test (./sfWebResponseTest.php at line 131) # got: 'text/html; charset=utf-8' # expected: NULL - overrides previous content type if replace is true # Failed test (./sfWebResponseTest.php at line 135) # got: 0 # expected: 1 # ->getTitle() ->setTitle() - returns an empty string by default - sets the title - will leave encoding intact # ->addHttpMeta() - takes a replace argument as its third argument # Failed test (./sfWebResponseTest.php at line 152) # got: NULL # expected: 'foo, bar, foobar' - also sets the corresponding http header # Failed test (./sfWebResponseTest.php at line 153) # got: NULL # expected: 'foo, bar, foobar' - takes a replace argument as its third argument # Failed test (./sfWebResponseTest.php at line 156) # got: NULL # expected: 'foo' - normalizes http header name # Failed test (./sfWebResponseTest.php at line 159) # got: NULL # expected: 'foo' # ->addVaryHttpHeader() - adds a new Vary header - does not add the same header twice - respects ordering # Failed test (./sfWebResponseTest.php at line 169) # got: 'Cookie, Accept\'-\'Language' # expected: 'Cookie, Accept-Language' # ->addCacheControlHttpHeader() - adds a new Cache-Control header - does not add the same header twice - respects ordering # ->copyProperties() - merges http headers - merges content type - merges titles # ->addStylesheet() - adds a new stylesheet for the response - adds a new stylesheet for the response - takes a position as its second argument - takes a position as its second argument - takes an array of parameters as its third argument - throws an InvalidArgumentException if the position is not first, the empty string, or last # ->getStylesheets() - returns all current registered stylesheets ordered by position - takes a position as its first argument - takes a position as its first argument - takes a position as its first argument # ->removeStylesheet() - removes a stylesheet from the response - removes a stylesheet from the response # ->addJavascript() - adds a new javascript for the response - adds a new javascript for the response - takes a position as its second argument - takes a position as its second argument - throws an InvalidArgumentException if the position is not first, the empty string, or last # ->getJavascripts() - returns all current registered javascripts ordered by position - takes a position as its first argument - takes a position as its first argument - takes a position as its first argument # ->removeJavascript() - removes a javascript file - removes a javascript file # ->setCookie() ->getCookies() - adds a cookie for the response # ->setHeaderOnly() ->isHeaderOnly() - returns false if the content must be send to the client - changes the current value of header only # ->sendContent() - returns nothing if headerOnly is true - returns the response content if headerOnly is false # ->serialize() ->unserialize() - sfWebResponse implements the Serializable interface # Looks like you failed 19 tests of 83.