parse(null, $message, []); } public function testVTODO() { $message = <<parse(null, $message, []); } public function testSimpleInvite() { $message = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:white@example.org', 'recipientName' => 'White', 'message' => $expectedMessage, ], ]; $this->parse(null, $message, $expected, 'mailto:strunk@example.org'); } /** * @expectedException \Sabre\VObject\ITip\ITipException */ public function testBrokenEventUIDMisMatch() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } /** * @expectedException \Sabre\VObject\ITip\ITipException */ public function testBrokenEventOrganizerMisMatch() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } public function testRecurrenceInvite() { $message = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:two@example.org', 'recipientName' => 'Two', 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:three@example.org', 'recipientName' => 'Three', 'message' => <<parse(null, $message, $expected, 'mailto:strunk@example.org'); } public function testRecurrenceInvite2() { // This method tests a nearly identical path, but in this case the // master event does not have an EXDATE. $message = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:two@example.org', 'recipientName' => 'Two', 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:three@example.org', 'recipientName' => 'Three', 'message' => <<parse(null, $message, $expected, 'mailto:strunk@example.org'); } public function testRecurrenceInvite3() { // This method tests a complex rrule $message = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'message' => <<parse(null, $message, $expected, 'mailto:strunk@example.org'); } public function testScheduleAgentClient() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } /** * @expectedException \Sabre\VObject\ITip\ITipException */ public function testMultipleUID() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } /** * @expectedException \Sabre\VObject\ITip\SameOrganizerForAllComponentsException */ public function testChangingOrganizers() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } public function testCaseInsensitiveOrganizers() { $message = <<parse(null, $message, [ [ 'uid' => 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', ], [ 'uid' => 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', ], ['uid' => 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', ], ], 'mailto:strunk@example.org'); } public function testNoOrganizerHasAttendee() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } }