示例#1
0
文件: TestBase.php 项目: horde/horde
 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());
 }
示例#2
0
 /**
  */
 public function eof()
 {
     return $this->_string ? $this->_string->eof() : parent::eof();
 }