lithium\tests\cases\action\ResponseTest::testTypeManipulation PHP Method

testTypeManipulation() public method

    public function testTypeManipulation()
    {
        $this->assertEqual('html', $this->response->type());
        $this->assertEqual('html', $this->response->type('html'));
        $this->assertEqual('json', $this->response->type('json'));
        $this->assertEqual('json', $this->response->type());
        $this->assertEqual(false, $this->response->type(false));
        $this->assertEqual(false, $this->response->type());
    }