3 class HttpRequestsController
extends ApplicationController
6 $this->renderText("Hello unit tester");
10 $this->renderText($this->Request
->getMethod());
13 function test_header()
15 $this->Response
->addHeader('x-test-header: akelos');
16 $this->renderNothing(200);
21 $this->renderNothing($this->params
['id']);
24 function get_user_agent()
26 $this->renderText($_SERVER['HTTP_USER_AGENT']);
31 $this->renderText(Ak
::toJson($this->params
['testing']));
36 $this->redirectToAction('redirect_2');
41 $this->redirectToAction('print_3');
46 $this->renderText('3');