Esempio n. 1
0
 public function testUpdateStream()
 {
     $file = new File($this->filesystem, 'fixtures/base.css');
     $stream = $file->readStream();
     $newFile = new File($this->filesystem, 'temp/koala.css');
     $newFile->write(null);
     $newFile->updateStream($stream);
     $this->assertSame($file->read(), $newFile->read());
 }