public function testCopyingAStream() { $s1 = new Facade_Stream(tmpfile(), null, true); $s2 = Facade_Stream::fromString('llamas'); $s1->copy($s2); $s1->rewind(); $this->assertEqual($s1->toString(), 'llamas'); }