'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => true, 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:two@example.org', 'recipientName' => 'Two', 'significantChange' => false, 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:three@example.org', 'recipientName' => 'Three', 'significantChange' => true, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } public function testInviteChangeFromNonSchedulingToSchedulingObject() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } public function testInviteChangeFromSchedulingToNonSchedulingObject() { $oldMessage = << 'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } public function testNoAttendees() { $oldMessage = <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } public function testRemoveInstance() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } /** * This test is identical to the first test, except this time we change the * DURATION property. * * This should ensure that the message is significant for every attendee, */ public function testInviteChangeSignificantChange() { $oldMessage = << 'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => true, 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:two@example.org', 'recipientName' => 'Two', 'significantChange' => true, 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:three@example.org', 'recipientName' => 'Three', 'significantChange' => true, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } public function testInviteNoChange() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => false, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } public function testInviteNoChangeForceSend() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => true, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } public function testInviteRemoveAttendees() { $oldMessage = << 'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => true, 'message' => << 'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:two@example.org', 'recipientName' => 'Two', 'significantChange' => true, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } public function testInviteChangeExdateOrder() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => false, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } }