Lines Matching refs:this

19         $this->response = new HTTP\ResponseMock();
22 $this->server = new Server($tree);
23 $this->server->sapi = new HTTP\SapiMock();
24 $this->server->debugExceptions = true;
25 $this->server->httpResponse = $this->response;
61 $this->server->httpRequest = ($request);
62 $this->server->exec();
64 …$this->assertEquals(204, $this->response->status, 'Received an incorrect HTTP status. Full body in…
65 $this->assertEquals(array(
69 $this->response->getHeaders()
72 $this->assertEquals('Test contents', file_get_contents(SABRE_TEMPDIR. '/test2.txt'));
85 $this->server->httpRequest = ($request);
86 $this->server->exec();
88 …$this->assertEquals(403, $this->response->status, 'Received an incorrect HTTP status. Full body in…
89 $this->assertEquals('Test contents', file_get_contents(SABRE_TEMPDIR. '/test.txt'));
103 $this->server->httpRequest = ($request);
104 $this->server->exec();
106 $this->assertEquals(array(
110 $this->response->getHeaders()
113 $this->assertEquals(409, $this->response->status);
127 $this->server->httpRequest = ($request);
128 $this->server->exec();
130 $this->assertEquals(400, $this->response->status);
143 $this->server->httpRequest = ($request);
144 $this->server->exec();
146 …$this->assertEquals(201, $this->response->status, 'Full response: ' . $this->response->getBody(tru…
148 $this->assertEquals(array(
152 $this->response->getHeaders()
155 $this->assertEquals('Test contents',file_get_contents(SABRE_TEMPDIR . '/col2/test.txt'));
168 $this->server->httpRequest = ($request);
169 $this->server->exec();
171 $this->assertEquals(array(
175 $this->response->getHeaders()
178 $this->assertEquals(201, $this->response->status);
179 $this->assertEquals('Test contents', file_get_contents(SABRE_TEMPDIR . '/test3.txt'));
192 $this->server->httpRequest = ($request);
193 $this->server->exec();
195 …$this->assertEquals(201, $this->response->status, 'Incorrect status received. Full response body: …
197 $this->assertEquals(array(
201 $this->response->getHeaders()
205 $this->assertEquals('Test contents',file_get_contents(SABRE_TEMPDIR . '/col2/test.txt'));