clearQuery example


    }

    /** * Reset the request object * * @return Enlight_Components_Test_Controller_TestCase */
    public function resetRequest()
    {
        if ($this->_request instanceof Enlight_Controller_Request_RequestTestCase) {
            $this->_request->clearQuery()
                    ->clearPost()
                    ->clearCookies();
        }
        $this->_request = null;

        return $this;
    }

    /** * Reset the response object * * @return Enlight_Components_Test_Controller_TestCase */
private $clientIp;

    /** * Clear the global state */
    public function clearAll()
    {
        $this->clearCookies();
        $this->clearHeaders();
        $this->clearParams();
        $this->clearPost();
        $this->clearQuery();
        $this->clearRawBody();
    }

    /** * Clear GET values * * @return Enlight_Controller_Request_RequestTestCase */
    public function clearQuery()
    {
        $_GET = [];
        
Home | Imprint | This part of the site doesn't use cookies.