Skip to content

Commit 8941bff

Browse files
committed
Simplify
1 parent 22e826e commit 8941bff

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

test/Solution/DirectorySolutionTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use InvalidArgumentException;
66
use PhpSchool\PhpWorkshop\Solution\DirectorySolution;
7-
use PhpSchool\PhpWorkshop\Utils\Path;
87
use PhpSchool\PhpWorkshop\Utils\System;
98
use PhpSchool\PhpWorkshopTest\BaseTest;
109
use Symfony\Component\Filesystem\Filesystem;
@@ -13,7 +12,7 @@ class DirectorySolutionTest extends BaseTest
1312
{
1413
public function tearDown(): void
1514
{
16-
(new Filesystem())->remove(Path::join(System::tempDir(), 'php-school'));
15+
(new Filesystem())->remove(System::tempDir('php-school'));
1716

1817
parent::tearDown();
1918
}

test/Solution/InTempSolutionMapperTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class InTempSolutionMapperTest extends BaseTest
1414
{
1515
public function tearDown(): void
1616
{
17-
(new Filesystem())->remove(Path::join(System::tempDir(), 'php-school'));
17+
(new Filesystem())->remove(System::tempDir('php-school'));
1818

1919
parent::tearDown();
2020
}

0 commit comments

Comments
 (0)