public function testCopyForOriginUrlsAndExistingLocalFileDefaultsToNotCopy() { $sourceFilePath = 'http://symfony.com/images/common/logo/logo_symfony_header.png'; $targetFilePath = $this->workspace . DIRECTORY_SEPARATOR . 'copy_target_file'; file_put_contents($targetFilePath, 'TARGET FILE'); $this->filesystem->copy($sourceFilePath, $targetFilePath, false); $this->assertFileExists($targetFilePath); $this->assertEquals(file_get_contents($sourceFilePath), file_get_contents($targetFilePath)); }