public function testPutStream() { $file = new File($this->filesystem, 'fixtures/base.css'); $stream = $file->readStream(); $newFile = new File($this->filesystem, 'temp/koala.css'); $this->assertFalse($newFile->exists()); $newFile->putStream($stream); $this->assertSame($file->read(), $newFile->read()); }