mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Initial Release of the calendar plugin
This commit is contained in:
parent
45cc9885fc
commit
7115197a33
561 changed files with 189494 additions and 0 deletions
28
dav/SabreDAV/tests/Sabre/DAV/ExceptionTest.php
Normal file
28
dav/SabreDAV/tests/Sabre/DAV/ExceptionTest.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
class Sabre_DAV_ExceptionTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
function testStatus() {
|
||||
|
||||
$e = new Sabre_DAV_Exception();
|
||||
$this->assertEquals(500,$e->getHTTPCode());
|
||||
|
||||
}
|
||||
|
||||
function testExceptionStatuses() {
|
||||
|
||||
$c = array(
|
||||
'Sabre_DAV_Exception_NotAuthenticated' => 401,
|
||||
'Sabre_DAV_Exception_InsufficientStorage' => 507,
|
||||
);
|
||||
|
||||
foreach($c as $class=>$status) {
|
||||
|
||||
$obj = new $class();
|
||||
$this->assertEquals($status, $obj->getHTTPCode());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue