/**
  * Test setting content type header
  */
 public function testAddImageContentTypeHeader()
 {
     $config = Config::getInstance();
     $controller = new TestController(true);
     $_GET['png'] = true;
     $results = $controller->go();
     $this->assertEqual($controller->getContentType(), 'image/png');
 }
 /**
  * Test setting content type header
  */
 public function testAddHeader()
 {
     $config = Config::getInstance();
     $controller = new TestController(true);
     $_GET['text'] = true;
     $results = $controller->go();
     $this->assertEqual($controller->getContentType(), 'text/plain');
 }