Symfony\Component\Filesystem\Tests\FilesystemTest::testDumpFileWithFileScheme PHP Method

testDumpFileWithFileScheme() public method

    public function testDumpFileWithFileScheme()
    {
        if (defined('HHVM_VERSION')) {
            $this->markTestSkipped('HHVM does not handle the file:// scheme correctly');
        }
        $scheme = 'file://';
        $filename = $scheme . $this->workspace . DIRECTORY_SEPARATOR . 'foo' . DIRECTORY_SEPARATOR . 'baz.txt';
        $this->filesystem->dumpFile($filename, 'bar');
        $this->assertFileExists($filename);
        $this->assertSame('bar', file_get_contents($filename));
    }
FilesystemTest