public function testContentNegotiationSimple() { $request = new Request(array('env' => array('HTTP_ACCEPT' => 'text/html,text/plain;q=0.5'))); $this->assertEqual('html', Media::negotiate($request)); $request = new Request(array('env' => array('HTTP_ACCEPT' => 'application/json'))); $this->assertEqual('json', Media::negotiate($request)); }