Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1821531
AbstractPluginTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
975 B
Subscribers
None
AbstractPluginTest.php
View Options
<?php
namespace
Sabre\CardDAV
;
use
Sabre\DAV
;
use
Sabre\DAVACL
;
use
Sabre\HTTP
;
abstract
class
AbstractPluginTest
extends
\PHPUnit_Framework_TestCase
{
/**
* @var Sabre\CardDAV\Plugin
*/
protected
$plugin
;
/**
* @var Sabre\DAV\Server
*/
protected
$server
;
/**
* @var Sabre\CardDAV\Backend\Mock;
*/
protected
$backend
;
function
setUp
()
{
$this
->
backend
=
new
Backend\Mock
();
$principalBackend
=
new
DAVACL\PrincipalBackend\Mock
();
$tree
=
array
(
new
AddressBookRoot
(
$principalBackend
,
$this
->
backend
),
new
DAVACL\PrincipalCollection
(
$principalBackend
)
);
$this
->
plugin
=
new
Plugin
();
$this
->
plugin
->
directories
=
array
(
'directory'
);
$this
->
server
=
new
DAV\Server
(
$tree
);
$this
->
server
->
sapi
=
new
HTTP\SapiMock
();
$this
->
server
->
addPlugin
(
$this
->
plugin
);
$this
->
server
->
debugExceptions
=
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Dec 24, 1:49 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914294
Default Alt Text
AbstractPluginTest.php (975 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment