parse(null, $message, []); } function testVTODO() { $message = <<parse(null, $message, []); } 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 */ function testBrokenEventUIDMisMatch() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } /** * @expectedException \Sabre\VObject\ITip\ITipException */ function testBrokenEventOrganizerMisMatch() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } 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'); } 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'); } function testScheduleAgentClient() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } /** * @expectedException Sabre\VObject\ITip\ITipException */ function testMultipleUID() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } /** * @expectedException Sabre\VObject\ITip\SameOrganizerForAllComponentsException */ function testChangingOrganizers() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } function testNoOrganizerHasAttendee() { $message = <<parse(null, $message, [], 'mailto:strunk@example.org'); } }