Skip to content

Commit

Permalink
Created tmp directory for all tests and clean up after
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jun 19, 2016
1 parent 0ca5dab commit 9d11f3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/ResourceGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public function testConstruct()

public function testOutput()
{
mkdir($this->temporaryDirectory);

$yamlPath = __DIR__ . DIRECTORY_SEPARATOR . 'yaml' . DIRECTORY_SEPARATOR;
$resourcesPath = __DIR__ . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR;
$context = Phake::mock(Context::class);
Expand Down Expand Up @@ -69,6 +67,7 @@ public function setUp()
{
parent::setUp();
$this->temporaryDirectory = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('wyrihaximus-php-api-client-resource-generator-', true) . DIRECTORY_SEPARATOR;
mkdir($this->temporaryDirectory);
}

public function tearDown()
Expand Down

0 comments on commit 9d11f3f

Please sign in to comment.