Rename var

main
Jordi Boggiano 9 years ago
parent 44a00a28fa
commit 969263944c

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

Loading…
Cancel
Save