Skip to content

Commit 98912f5

Browse files
committed
Fixed issues that came up through Infection
1 parent 85770f2 commit 98912f5

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ abstract class TestCase extends PHPUnitTestCase
3232
*/
3333
private $tmpNamespace;
3434

35-
public function setUp()
35+
protected function setUp()
3636
{
3737
parent::setUp();
3838

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

53-
public function tearDown()
53+
protected function tearDown()
5454
{
5555
parent::tearDown();
5656
$this->rmdir($this->baseTmpDir);

tests/TestCaseTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ final class TestCaseTest extends TestCase
2020
*/
2121
private $previousTemporaryDirectory = '';
2222

23+
protected function setUp()
24+
{
25+
parent::setUp();
26+
}
27+
28+
protected function tearDown()
29+
{
30+
parent::tearDown();
31+
}
32+
2333
public function provideTemporaryDirectory()
2434
{
2535
for ($i = 0; $i <= self::PENTIUM; $i++) {
@@ -107,4 +117,9 @@ public function testAwaitTimeout(LoopInterface $loop = null)
107117

108118
$this->await((new Deferred())->promise(), $loop, 0.1);
109119
}
120+
121+
public function testGetSysTempDir()
122+
{
123+
self::assertFileExists($this->getSysTempDir());
124+
}
110125
}

0 commit comments

Comments
 (0)