Lines Matching refs:this
16 $this->server->on('afterBind', [$this,'afterBindHandler']);
19 $this->tempPath = '';
20 $this->server->createFile($newPath,'body');
21 $this->assertEquals($newPath, $this->tempPath);
27 $this->tempPath = $path;
33 $mock = $this->getMock('stdClass', array('afterResponseCallback'));
34 $mock->expects($this->once())->method('afterResponseCallback');
36 $this->server->on('afterResponse', [$mock, 'afterResponseCallback']);
38 $this->server->httpRequest = HTTP\Sapi::createFromServerArray(array(
43 $this->server->exec();
49 $this->server->on('beforeBind', [$this,'beforeBindCancelHandler']);
50 $this->assertFalse($this->server->createFile('bla','body'));
58 $this->server->httpRequest = $req;
59 $this->server->exec();
61 $this->assertEquals('',$this->server->httpResponse->status);
73 $this->server->on('exception', [$this, 'exceptionHandler']);
79 $this->server->httpRequest = $req;
80 $this->server->exec();
82 $this->assertInstanceOf('Sabre\\DAV\\Exception\\NotFound', $this->exception);
88 $this->exception = $exception;
95 $this->server->on('method', function() use (&$k) {
102 $this->server->on('method', function() use (&$k) {
110 $this->server->invokeMethod(
116 $this->assertEquals(2, $k);