Commit 08531312 by Carsten Brandt

fixed HHVM test break

always use unique directory for each test
parent 87c6eec5
...@@ -27,7 +27,7 @@ class AssetControllerTest extends TestCase ...@@ -27,7 +27,7 @@ class AssetControllerTest extends TestCase
public function setUp() public function setUp()
{ {
$this->mockApplication(); $this->mockApplication();
$this->testFilePath = Yii::getAlias('@yiiunit/runtime') . DIRECTORY_SEPARATOR . str_replace('\\', '_', get_class($this)); $this->testFilePath = Yii::getAlias('@yiiunit/runtime') . DIRECTORY_SEPARATOR . str_replace('\\', '_', get_class($this)) . uniqid();
$this->createDir($this->testFilePath); $this->createDir($this->testFilePath);
$this->testAssetsBasePath = $this->testFilePath . DIRECTORY_SEPARATOR . 'assets'; $this->testAssetsBasePath = $this->testFilePath . DIRECTORY_SEPARATOR . 'assets';
$this->createDir($this->testAssetsBasePath); $this->createDir($this->testAssetsBasePath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment