mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
try to use unique test directories
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and cleanup of tests (removing directories) should not interfere with currently running tests
This commit is contained in:
parent
06a21132db
commit
adf3b956d0
25 changed files with 145 additions and 91 deletions
|
@ -13,8 +13,9 @@
|
|||
namespace Composer\Test\Downloader;
|
||||
|
||||
use Composer\Downloader\PearPackageExtractor;
|
||||
use Composer\TestCase;
|
||||
|
||||
class PearPackageExtractorTest extends \PHPUnit_Framework_TestCase
|
||||
class PearPackageExtractorTest extends TestCase
|
||||
{
|
||||
public function testShouldExtractPackage_1_0()
|
||||
{
|
||||
|
@ -122,7 +123,7 @@ class PearPackageExtractorTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
public function testShouldPerformReplacements()
|
||||
{
|
||||
$from = tempnam(sys_get_temp_dir(), 'pear-extract');
|
||||
$from = tempnam($this->getUniqueTmpDirectory(), 'pear-extract');
|
||||
$to = $from.'-to';
|
||||
|
||||
$original = 'replaced: @placeholder@; not replaced: @another@; replaced again: @placeholder@';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue