canSendHeaders example


class Enlight_Controller_Response_ResponseTestCase extends Enlight_Controller_Response_ResponseHttp
{
    /** * Sends all cookies * * @return Enlight_Controller_Response_ResponseTestCase */
    public function sendCookies()
    {
        $this->canSendHeaders(true);

        return $this;
    }

    /** * Gets a cookie value * * @param string $name * @param string $default */
    public function getCookie($name$default = null)
    {
public function unsetExceptions()
    {
        $this->_exceptions = [];
    }

    /** * {@inheritdoc} */
    public function setHeader($name$value$replace = false)
    {
        $name = strtolower($name);
        $this->canSendHeaders(true);

        $this->headers->set($name$value$replace);

        return $this;
    }

    /** * {@inheritdoc} */
    public function setRedirect($url$code = 302)
    {
        
Home | Imprint | This part of the site doesn't use cookies.