mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Second part of refactoring; should be runnable again, yet not thoroughly tested
This commit is contained in:
parent
b8234a1cb8
commit
6186153f68
88 changed files with 2135 additions and 1186 deletions
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Sabre\VObject;
|
||||
|
||||
class Sabre_CalDAV_CalendarQueryValidatorTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
/**
|
||||
|
@ -19,7 +21,7 @@ class Sabre_CalDAV_CalendarQueryValidatorTest extends PHPUnit_Framework_TestCase
|
|||
'time-range' => null,
|
||||
);
|
||||
|
||||
$vObject = Sabre_VObject_Reader::read($icalObject);
|
||||
$vObject = VObject\Reader::read($icalObject);
|
||||
|
||||
switch($outcome) {
|
||||
case 0 :
|
||||
|
@ -31,7 +33,7 @@ class Sabre_CalDAV_CalendarQueryValidatorTest extends PHPUnit_Framework_TestCase
|
|||
case -1 :
|
||||
try {
|
||||
$validator->validate($vObject, $filters);
|
||||
} catch (Sabre_DAV_Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
// Success
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue