コード例 #1
0
 public function testDumpFileOverwritesAnExistingFile()
 {
     $filename = $this->workspace . DIRECTORY_SEPARATOR . 'foo.txt';
     file_put_contents($filename, 'FOO BAR');
     $this->filesystem->dumpFile($filename, 'bar');
     $this->assertFileExists($filename);
     $this->assertSame('bar', file_get_contents($filename));
 }