Skip to content

Commit

Permalink
Fixed issues that came up through Infection
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jan 16, 2018
1 parent 85770f2 commit 98912f5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class TestCase extends PHPUnitTestCase
*/
private $tmpNamespace;

public function setUp()
protected function setUp()
{
parent::setUp();

Expand All @@ -50,7 +50,7 @@ public function setUp()
$this->tmpNamespace = uniqid('PACTN');
}

public function tearDown()
protected function tearDown()
{
parent::tearDown();
$this->rmdir($this->baseTmpDir);
Expand Down
15 changes: 15 additions & 0 deletions tests/TestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ final class TestCaseTest extends TestCase
*/
private $previousTemporaryDirectory = '';

protected function setUp()
{
parent::setUp();
}

protected function tearDown()
{
parent::tearDown();
}

public function provideTemporaryDirectory()
{
for ($i = 0; $i <= self::PENTIUM; $i++) {
Expand Down Expand Up @@ -107,4 +117,9 @@ public function testAwaitTimeout(LoopInterface $loop = null)

$this->await((new Deferred())->promise(), $loop, 0.1);
}

public function testGetSysTempDir()
{
self::assertFileExists($this->getSysTempDir());
}
}

0 comments on commit 98912f5

Please sign in to comment.