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

testDumpFileWithZlibScheme() public method

    public function testDumpFileWithZlibScheme()
    {
        $scheme = 'compress.zlib://';
        $filename = $this->workspace . DIRECTORY_SEPARATOR . 'foo' . DIRECTORY_SEPARATOR . 'baz.txt';
        $this->filesystem->dumpFile($filename, 'bar');
        // Zlib stat uses file:// wrapper so remove scheme
        $this->assertFileExists(str_replace($scheme, '', $filename));
        $this->assertSame('bar', file_get_contents($filename));
    }
FilesystemTest