Example #1
0
 public function test__toString()
 {
     $s = new CalendarStream();
     $item = 'TEST';
     $s->addItem($item);
     $expected = 'TEST' . Constants::CRLF;
     $this->assertEquals($expected, $s->__toString());
 }
Example #2
0
 /**
  * @param string $item
  * @return void
  */
 public function addItem($item)
 {
     parent::addItem($item);
     echo $this;
     $this->reset();
     return $this;
 }