tests/Http/RequestTest.php
/**
     * Checks the integrity of header values retrieved from the request.
     */
Checks the integrity of header values retrieved from the request.
Checks the integrity of header values retrieved from the request .
public function testHeaders()
    {
        $this->assertEquals('text/html', $this->request->header('content-type'));
        $this->assertEquals('text/html', $this->request->header('content_type'));
        $this->assertEquals('a; b; c;', $this->request->header('list'));
    }
public function testHeaders ( ) { $ this -> assertEquals ( 'text/html' , $ this -> request -> header ( 'content-type' ) ) ; $ this -> assertEquals ( 'text/html' , $ this -> request -> header ( 'content_type' ) ) ; $ this -> assertEquals ( 'a; b; c;' , $ this -> request -> header ( 'list' ) ) ; }
Checks the integrity of header values retrieved from the request.
Checks the integrity of header values retrieved from the request .