Ejemplo n.º 1
0
 public function testClone()
 {
     $stream = new Horde_Stream_String(array('string' => 'Foo'));
     $stream->rewind();
     $this->ob->setFullMsg($stream->stream);
     $ob2 = clone $this->ob;
     $this->ob->setFullMsg('Bar');
     $this->assertEquals('Bar', $this->ob->getFullMsg());
     $this->assertEquals('Foo', $ob2->getFullMsg());
 }
Ejemplo n.º 2
0
 /**
  */
 public function eof()
 {
     return $this->_string ? $this->_string->eof() : parent::eof();
 }