view vendor/sabre/vobject/tests/VObject/ITip/MessageTest.php @ 7:430dbd5346f7

vendor sabre as distributed
author Charlie Root
date Sat, 13 Jan 2018 09:06:10 -0500
parents
children
line wrap: on
line source

<?php

namespace Sabre\VObject\ITip;

class MessageTest extends \PHPUnit_Framework_TestCase {

    public function testNoScheduleStatus() {

        $message = new Message();
        $this->assertFalse($message->getScheduleStatus());

    }

    public function testScheduleStatus() {

        $message = new Message();
        $message->scheduleStatus = '1.2;Delivered';

        $this->assertEquals('1.2', $message->getScheduleStatus());

    }

    public function testUnexpectedScheduleStatus() {

        $message = new Message();
        $message->scheduleStatus = '9.9.9';

        $this->assertEquals('9.9.9', $message->getScheduleStatus());

    }

}