public function testPut() { $path = 'temp/SilversunPickups.txt'; $file = new File($this->filesystem, $path); $this->assertFalse($file->exists()); $file->write(null); $file->put('Nightlight'); $newFile = new File($this->filesystem, $path); $this->assertSame('Nightlight', $newFile->read()); $file = new File($this->filesystem, $path); $this->assertTrue($file->exists()); $file->put("It's nice to know you work alone"); $newFile = new File($this->filesystem, $path); $this->assertSame("It's nice to know you work alone", $newFile->read()); }