Lines Matching refs:this

17         $this->server->addPlugin($this->plugin = new Plugin());
18 $this->server->tree->getNodeForPath('')->createDirectory('dir2');
25 $this->server->httpRequest = $request;
26 $this->server->exec();
28 …$this->assertEquals(200, $this->response->getStatus(), "Incorrect status received. Full response b…
29 $this->assertEquals(
35 $this->response->getHeaders()
38 $body = $this->response->getBodyAsString();
39 $this->assertTrue(strpos($body, '<title>dir') !== false, $body);
40 $this->assertTrue(strpos($body, '<a href="/dir/child.txt">')!==false);
51 $this->server->httpRequest = $request;
52 $this->server->exec();
54 …$this->assertEquals(200, $this->response->getStatus(), "Incorrect status received. Full response b…
55 $this->assertEquals(
61 $this->response->getHeaders()
64 $body = $this->response->getBodyAsString();
65 $this->assertTrue(strpos($body, '<title>dir') !== false, $body);
66 $this->assertTrue(strpos($body, '<a href="/dir/child.txt">')!==false);
72 $this->server->httpRequest = ($request);
73 $this->server->exec();
75 …$this->assertEquals(200, $this->response->status, "Incorrect status received. Full response body: …
76 $this->assertEquals(
82 $this->response->getHeaders()
85 $body = $this->response->getBodyAsString();
86 $this->assertTrue(strpos($body, '<title>/') !== false, $body);
87 $this->assertTrue(strpos($body, '<a href="/dir/">')!==false);
88 $this->assertTrue(strpos($body, '<span class="btn disabled">')!==false);
96 $this->assertNull(
97 $this->plugin->httpGet($request, $response)
105 $this->server->httpRequest = $request;
106 $this->server->exec();
108 $this->assertEquals(501, $this->response->status);
116 $this->server->httpRequest = $request;
117 $this->server->exec();
119 $this->assertEquals(501, $this->response->status);
137 $this->server->httpRequest = $request;
138 $this->server->exec();
140 $this->assertEquals(302, $this->response->status);
141 $this->assertEquals(array(
144 ), $this->response->getHeaders());
146 $this->assertTrue(is_dir(SABRE_TEMPDIR . '/new_collection'));
153 $this->server->httpRequest = $request;
154 $this->server->exec();
156 $this->assertEquals(200, $this->response->getStatus(), 'Error: ' . $this->response->body);
157 $this->assertEquals([
163 ], $this->response->getHeaders());
170 $this->server->httpRequest = $request;
171 $this->server->exec();
173 $this->assertEquals(404, $this->response->getStatus(), 'Error: ' . $this->response->body);
180 $this->server->httpRequest = $request;
181 $this->server->exec();
183 $this->assertEquals(404, $this->response->getStatus(), 'Error: ' . $this->response->body);