From 3852ca9e63b18cfd0d6a4c7cf18b2787ec41f5e7 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 24 Oct 2008 18:04:47 +1300 Subject: [PATCH] Add another test, covering daily with BYDAY. --- inc/test-RRULE.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/test-RRULE.php b/inc/test-RRULE.php index baab42b9..a182791b 100644 --- a/inc/test-RRULE.php +++ b/inc/test-RRULE.php @@ -18,6 +18,7 @@ $tests = array( , "20061117T073000" => "RRULE:FREQ=MONTHLY;BYDAY=1MO,2WE,3FR,-1SU" , "20061107T103000" => "RRULE:FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR" , "20061107T113000" => "RRULE:FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1" + , "20081020T110000" => "RRULE:FREQ=DAILY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR" ); foreach( $tests AS $start => $rrule ) { @@ -26,7 +27,7 @@ foreach( $tests AS $start => $rrule ) { $rule = new RRule( new iCalDate($start), $rrule ); $i = 0; do { - if ( ($i % 4) == 0 ) echo "\n"; + if ( ($i % 10) == 0 ) echo "\n"; $date = $rule->GetNext(); if ( isset($date) ) { echo " " . $date->Render(); @@ -38,4 +39,3 @@ foreach( $tests AS $start => $rrule ) { } exit(0); -?>