Exemple #1
0
 protected function setUp()
 {
     HeaderStack::reset();
     $this->request = new Request();
     $this->response = new Response();
     $this->sender = new Sender($this->request, $this->response);
 }
Exemple #2
0
 protected function setUp()
 {
     HeaderStack::reset();
     $this->api = $api = new Api();
     $this->request = $req = new Request();
     $this->response = $resp = new Response();
     $router = new Router(new Cache(""), new UrlTools());
     $sender = new Sender($req, $resp);
     $this->dispatcher = new Dispatcher($api, $req, $resp, $router, $sender);
     $this->api->resources = array("Wilson\\Tests\\Fixtures\\ResourceFixture");
 }