Lines Matching refs:this

24         $this->tree = new Mock\Collection('root', [
36 $response = $this->request($request);
37 $this->assertEquals(403, $response->getStatus());
38 $this->assertEquals('content1', $this->tree->getChild('file1')->get());
47 $response = $this->request($request);
48 $this->assertEquals(201, $response->getStatus(), print_r($response,true));
49 $this->assertEquals('content1', $this->tree->getChild('file3')->get());
50 $this->assertFalse($this->tree->childExists('file1'));
59 $response = $this->request($request);
60 $this->assertEquals(204, $response->getStatus(), print_r($response,true));
61 $this->assertEquals('content1', $this->tree->getChild('file2')->get());
62 $this->assertFalse($this->tree->childExists('file1'));
72 $response = $this->request($request);
73 $this->assertEquals(204, $response->getStatus(), print_r($response,true));
74 $this->assertEquals('content1', $this->tree->getChild('file2')->get());
75 $this->assertFalse($this->tree->childExists('file1'));
85 $response = $this->request($request);
86 $this->assertEquals(412, $response->getStatus(), print_r($response,true));
87 $this->assertEquals('content1', $this->tree->getChild('file1')->get());
88 $this->assertEquals('content2', $this->tree->getChild('file2')->get());
89 $this->assertTrue($this->tree->childExists('file1'));
90 $this->assertTrue($this->tree->childExists('file2'));
101 $this->server->on('beforeUnbind', function($path) {
111 $response = $this->request($request);
112 $this->assertEquals(403, $response->getStatus(), print_r($response,true));
113 $this->assertEquals('content1', $this->tree->getChild('file1')->get());
114 $this->assertEquals('content2', $this->tree->getChild('file2')->get());
115 $this->assertTrue($this->tree->childExists('file1'));
116 $this->assertTrue($this->tree->childExists('file2'));