18UID:20140813T153116Z-12176-1000-1065-6@johnny-lubuntu
19DTSTAMP:20140813T142829Z
20DTSTART;TZID=America/Toronto:20140815T110000
22SUMMARY:Evo makes a Meeting
26ORGANIZER:MAILTO:martin@fruux.com
27ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
28 TRUE;LANGUAGE=en:MAILTO:dominik@fruux.com
29CREATED:20140813T153211Z
30LAST-MODIFIED:20140813T155353Z
36 $expected = [[
'significantChange' =>
false, ]];
38 $this->
parse($old, $new, $expected,
'mailto:martin@fruux.com');
52UID:20140813T153116Z-12176-1000-1065-6@johnny-lubuntu
53DTSTAMP:20140813T142829Z
54DTSTART;TZID=America/Toronto:20140815T110000
56SUMMARY:Evo makes a Meeting
60ORGANIZER:MAILTO:martin@fruux.com
61ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
62 TRUE;LANGUAGE=en:MAILTO:dominik@fruux.com
63CREATED:20140813T153211Z
64LAST-MODIFIED:20140813T155353Z
69 $new = str_replace(
'FREQ=WEEKLY',
'FREQ=WEEKLY;INTERVAL=1', $old);
70 $expected = [[
'significantChange' =>
false, ]];
72 $this->
parse($old, $new, $expected,
'mailto:martin@fruux.com');
87UID:20140813T153116Z-12176-1000-1065-6@johnny-lubuntu
88DTSTAMP:20140813T142829Z
89DTSTART;TZID=America/Toronto:20140815T110000
91SUMMARY:Evo makes a Meeting
94RRULE:FREQ=WEEKLY;BYDAY=MO
95ORGANIZER:MAILTO:martin@fruux.com
96ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
97 TRUE;LANGUAGE=en:MAILTO:dominik@fruux.com
98CREATED:20140813T153211Z
99LAST-MODIFIED:20140813T155353Z
104 $new = str_replace(
'FREQ=WEEKLY;BYDAY=MO',
'BYDAY=MO;FREQ=WEEKLY', $old);
105 $expected = [[
'significantChange' =>
false, ]];
107 $this->
parse($old, $new, $expected,
'mailto:martin@fruux.com');
An exception for terminatinating execution or to throw for unit testing.
testSignificantChangesRRuleNoChange()
Check significant changes detection (no change)
testSignificantChangesNoChange()
Check significant changes detection (no change)
testSignificantChangesRRuleOrderNoChange()
Check significant changes detection (no change)
Utilities for testing the broker.
parse($oldMessage, $newMessage, $expected=[], $currentUser='mailto:one @example.org')