コード例 #1
0
 function testGeneratorBaseObject()
 {
     $obj = new Component\VCalendar();
     $obj->METHOD = 'PUBLISH';
     $gen = new FreeBusyGenerator();
     $gen->setObjects([]);
     $gen->setBaseObject($obj);
     $result = $gen->getResult();
     $this->assertEquals('PUBLISH', $result->METHOD->getValue());
 }
コード例 #2
0
 function testGeneratorBaseObject()
 {
     $obj = new Component('VCALENDAR');
     $obj->METHOD = 'PUBLISH';
     $gen = new FreeBusyGenerator();
     $gen->setObjects(array());
     $gen->setBaseObject($obj);
     $result = $gen->getResult();
     $this->assertEquals('PUBLISH', $result->METHOD->value);
 }