summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-09 11:12:34 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-09 11:12:34 (GMT)
commit57ae48b85f2ee73836b4c6566094590c953c5eaa (patch)
tree0d94b67811d3715fe612cdf05ec4021c4edd466c
parent40f74371af114d2494136e490ab1d0ce91076484 (diff)
parent0bdbb4df6b6626019a7ab52038cca85c3689fd22 (diff)
downloadlibkolabxml-57ae48b85f2ee73836b4c6566094590c953c5eaa.tar.gz
Merge branch 'master' of ssh://git.kolab.org/git/libkolabxml
-rwxr-xr-xsrc/php/test.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/php/test.php b/src/php/test.php
index 557cba2..8ecc8c3 100755
--- a/src/php/test.php
+++ b/src/php/test.php
@@ -42,7 +42,7 @@ function array2vector($arr) {
/////// Test Event
$e = new Event();
-$e->setCreated(new cDateTime(2012,3,14, 9,5,30));
+$e->setCreated(new cDateTime(2012,3,14, 9,5,30, true));
$e->setStart(new cDateTime(2012,7,31));
$d = new cDateTime(2009,10,12);
assertequal($e->exceptionDates()->size(), 0, "Event::exceptionDates()");
@@ -66,7 +66,7 @@ $va->push($a1);
$acr = new vectorcontactref;
$acr->push(new ContactReference("alarms@kolab.org"));
$a2 = new Alarm("Email alarm", "Alarm description", $acr);
-$a2->setStart(new cDateTime(2012,7,30, 20, 30, 0));
+$a2->setStart(new cDateTime(2012,7,30, 20,30,0, true));
$va->push($a2);
$e->setAlarms($va);
@@ -94,6 +94,9 @@ assertequal($r->frequency(), RecurrenceRule::Minutely, "RecurrenceRule::frequenc
assertequal($r->bysecond()->size(), 2, "RecurrenceRule::bysecond()");
assertequal($e1->exceptionDates()->size(), 1, "Read Event::exceptionDates()");
+$va = $e1->alarms();
+assertequal($va->size(), 2, "Event::alarms()");
+
$rr = new RecurrenceRule();
$rr->setFrequency(RecurrenceRule::Monthly);
$byday = new vectordaypos;