ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AbstractPluginTest.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\CardDAV;
4
5use Sabre\DAV;
7use Sabre\HTTP;
8
10
14 protected $plugin;
18 protected $server;
22 protected $backend;
23
24 function setUp() {
25
26 $this->backend = new Backend\Mock();
28
29 $tree = [
30 new AddressBookRoot($principalBackend, $this->backend),
32 ];
33
34 $this->plugin = new Plugin();
35 $this->plugin->directories = ['directory'];
36 $this->server = new DAV\Server($tree);
37 $this->server->sapi = new HTTP\SapiMock();
38 $this->server->addPlugin($this->plugin);
39 $this->server->debugExceptions = true;
40
41 }
42
43}
$principalBackend
An exception for terminatinating execution or to throw for unit testing.
CardDAV plugin.
Definition: Plugin.php:23
Main DAV server class.
Definition: Server.php:23