Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1842018
Issue166Test.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
1 KB
Subscribers
None
Issue166Test.php
View Options
<?php
namespace
Sabre\CalDAV
;
use
Sabre\VObject
;
use
Sabre\DAV
;
class
Issue166Test
extends
\PHPUnit_Framework_TestCase
{
function
testFlaw
()
{
$input
=
<<<HI
BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Asia/Pyongyang
X-LIC-LOCATION:Asia/Pyongyang
BEGIN:STANDARD
TZOFFSETFROM:+0900
TZOFFSETTO:+0900
TZNAME:KST
DTSTART:19700101T000000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20111118T010857Z
LAST-MODIFIED:20111118T010937Z
DTSTAMP:20111118T010937Z
UID:a03245b3-9947-9a48-a088-863c74e0fdd8
SUMMARY:New Event
RRULE:FREQ=YEARLY
DTSTART;TZID=Asia/Pyongyang:19960102T111500
DTEND;TZID=Asia/Pyongyang:19960102T121500
END:VEVENT
END:VCALENDAR
HI;
$validator
=
new
CalendarQueryValidator
();
$filters
=
array
(
'name'
=>
'VCALENDAR'
,
'comp-filters'
=>
array
(
array
(
'name'
=>
'VEVENT'
,
'comp-filters'
=>
array
(),
'prop-filters'
=>
array
(),
'is-not-defined'
=>
false
,
'time-range'
=>
array
(
'start'
=>
new
\DateTime
(
'2011-12-01'
),
'end'
=>
new
\DateTime
(
'2012-02-01'
),
),
),
),
'prop-filters'
=>
array
(),
'is-not-defined'
=>
false
,
'time-range'
=>
null
,
);
$input
=
VObject\Reader
::
read
(
$input
);
$this
->
assertTrue
(
$validator
->
validate
(
$input
,
$filters
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jan 7, 10:45 PM (1 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914574
Default Alt Text
Issue166Test.php (1 KB)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment