diff --git a/core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilder/ZipArchiveBuilder.php b/core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilder/ZipArchiveBuilder.php index fd750bc0c..72ce37c91 100644 --- a/core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilder/ZipArchiveBuilder.php +++ b/core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilder/ZipArchiveBuilder.php @@ -235,7 +235,7 @@ class ZipArchiveBuilder extends AbstractArchiveBuilder */ $initialString = preg_replace("#\/{2,}#", "/", $initialString); - if (preg_match("#\/?[^\/]+\/[^/]+\/?#", $initialString)) { + if (preg_match("#\/?[^\/]+\/[^\/]+\/?#", $initialString)) { $initialString = "/" . $initialString; } return $initialString; diff --git a/core/lib/Thelia/Tests/FileFormat/Archive/ArchiveBuilder/TarArchiveBuilderTest.php b/core/lib/Thelia/Tests/FileFormat/Archive/ArchiveBuilder/TarArchiveBuilderTest.php index 269de3c91..055ae03c9 100644 --- a/core/lib/Thelia/Tests/FileFormat/Archive/ArchiveBuilder/TarArchiveBuilderTest.php +++ b/core/lib/Thelia/Tests/FileFormat/Archive/ArchiveBuilder/TarArchiveBuilderTest.php @@ -86,8 +86,6 @@ class TarArchiveBuilderTest extends \PHPUnit_Framework_TestCase public function testAddValidFileFromString() { - $this->tar->addFileFromString( - ) } } \ No newline at end of file diff --git a/core/lib/Thelia/Tests/Tools/FileDownloaderTest.php b/core/lib/Thelia/Tests/Tools/FileDownloaderTest.php index 3ebc3e459..7bc36523f 100644 --- a/core/lib/Thelia/Tests/Tools/FileDownloaderTest.php +++ b/core/lib/Thelia/Tests/Tools/FileDownloaderTest.php @@ -14,7 +14,7 @@ namespace Thelia\Tests\Type; use Symfony\Component\DependencyInjection\Container; use Thelia\Core\Translation\Translator; use Thelia\Log\Tlog; -use Thelia\Tools\FileDownloader; +use Thelia\Tools\FileDownload\FileDownloader; /** * Class FileDownloaderTest