Rename var

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

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

Loading…
Cancel
Save