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