1
0
Fork 0

Rename var

pull/4525/merge
Jordi Boggiano 2016-01-09 18:39:18 +00:00
parent 44a00a28fa
commit 969263944c
1 changed files with 4 additions and 4 deletions

View File

@ -25,20 +25,20 @@ class XzDownloaderTest extends \PHPUnit_Framework_TestCase
/**
* @var string
*/
private $testName;
private $testDir;
public function setUp()
{
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$this->markTestSkipped('Skip test on Windows');
}
$this->testName = sys_get_temp_dir().'/composer-xz-test-vendor';
$this->testDir = sys_get_temp_dir().'/composer-xz-test-vendor';
}
public function tearDown()
{
$this->fs = new Filesystem;
$this->fs->removeDirectory($this->testName);
$this->fs->removeDirectory($this->testDir);
}
public function testErrorMessages()
@ -62,7 +62,7 @@ class XzDownloaderTest extends \PHPUnit_Framework_TestCase
$config->expects($this->any())
->method('get')
->with('vendor-dir')
->will($this->returnValue($this->testName));
->will($this->returnValue($this->testDir));
$downloader = new XzDownloader($io, $config);
try {