lithium\tests\cases\action\RequestTest::testAcceptForBothXmlWithAliasedHtml PHP Method

testAcceptForBothXmlWithAliasedHtml() public method

    public function testAcceptForBothXmlWithAliasedHtml()
    {
        $request = new Request(array('env' => array('HTTP_ACCEPT' => 'application/xml')));
        $this->assertTrue($request->accepts('xml'));
        $this->assertFalse($request->accepts('html'));
    }
RequestTest