Skip to content

Commit 4952e5c

Browse files
OskarStarknicolas-grekas
authored andcommitted
Use createMock() and use import instead of FQCN
1 parent 55114d8 commit 4952e5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/DotenvTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Dotenv\Dotenv;
1616
use Symfony\Component\Dotenv\Exception\FormatException;
17+
use Symfony\Component\Dotenv\Exception\PathException;
1718

1819
class DotenvTest extends TestCase
1920
{
@@ -322,7 +323,7 @@ public function testOverload()
322323

323324
public function testLoadDirectory()
324325
{
325-
$this->expectException(\Symfony\Component\Dotenv\Exception\PathException::class);
326+
$this->expectException(PathException::class);
326327
$dotenv = new Dotenv(true);
327328
$dotenv->load(__DIR__);
328329
}

0 commit comments

Comments
 (0)