/**
  * testResponseContentType method
  *
  * @return void
  */
 public function testResponseContentType()
 {
     $this->assertEquals('html', $this->RequestHandler->responseType());
     $this->assertTrue($this->RequestHandler->respondAs('atom'));
     $this->assertEquals('atom', $this->RequestHandler->responseType());
 }
 /**
  * testResponseContentType method
  *
  * @access public
  * @return void
  */
 function testResponseContentType()
 {
     $this->assertNull($this->RequestHandler->responseType());
     $this->assertTrue($this->RequestHandler->respondAs('atom'));
     $this->assertEqual($this->RequestHandler->responseType(), 'atom');
 }
 /**
  * Overload respondAs to Ignore Debug Status
  * 
  * @author	Wes DeMoney <*****@*****.**>
  * @since	1.0
  * @param	mixed	$type
  * @param	array	$options 
  * @return  array
  */
 public function respondAs($type, $options = array())
 {
     // Get Current Debug Level
     $debug = Configure::read();
     // Disable Debug Mode if Enabled
     if (!($debug < 2)) {
         Configure::write('debug', 0);
     }
     // Call RequestHandler respondAs
     $result = parent::respondAs($type, $options);
     // Re Enable Debug Mode if Previously Enabled
     if (!($debug < 2)) {
         Configure::write('debug', $debug);
     }
     return $result;
 }