Fix FileDownloader test

modifié:         core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilder/ZipArchiveBuilder.php
	modifié:         core/lib/Thelia/Tests/FileFormat/Archive/ArchiveBuilder/TarArchiveBuilderTest.php
	modifié:         core/lib/Thelia/Tests/Tools/FileDownloaderTest.php
This commit is contained in:
Benjamin Perche
2014-07-03 13:43:59 +02:00
parent 21bf9fd0e2
commit 9e66c4759a
3 changed files with 2 additions and 4 deletions

View File

@@ -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;

View File

@@ -86,8 +86,6 @@ class TarArchiveBuilderTest extends \PHPUnit_Framework_TestCase
public function testAddValidFileFromString()
{
$this->tar->addFileFromString(
)
}
}

View File

@@ -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