1<?php 2 3namespace Sabre\VObject\ITip; 4 5class MessageTest extends \PHPUnit_Framework_TestCase { 6 7 public function testNoScheduleStatus() { 8 9 $message = new Message(); 10 $this->assertFalse($message->getScheduleStatus()); 11 12 } 13 14 public function testScheduleStatus() { 15 16 $message = new Message(); 17 $message->scheduleStatus = '1.2;Delivered'; 18 19 $this->assertEquals('1.2', $message->getScheduleStatus()); 20 21 } 22 23 public function testUnexpectedScheduleStatus() { 24 25 $message = new Message(); 26 $message->scheduleStatus = '9.9.9'; 27 28 $this->assertEquals('9.9.9', $message->getScheduleStatus()); 29 30 } 31 32} 33