Skip to content

Commit 83a6fee

Browse files
OskarStarknicolas-grekas
authored andcommitted
Use createMock() and use import instead of FQCN
1 parent a27af3b commit 83a6fee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/FilesystemTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Filesystem\Tests;
1313

14+
use Symfony\Component\Filesystem\Exception\InvalidArgumentException;
1415
use Symfony\Component\Filesystem\Exception\IOException;
1516

1617
/**
@@ -1150,14 +1151,14 @@ public function providePathsForMakePathRelative()
11501151

11511152
public function testMakePathRelativeWithRelativeStartPath()
11521153
{
1153-
$this->expectException(\Symfony\Component\Filesystem\Exception\InvalidArgumentException::class);
1154+
$this->expectException(InvalidArgumentException::class);
11541155
$this->expectExceptionMessage('The start path "var/lib/symfony/src/Symfony/Component" is not absolute.');
11551156
$this->assertSame('../../../', $this->filesystem->makePathRelative('/var/lib/symfony/', 'var/lib/symfony/src/Symfony/Component'));
11561157
}
11571158

11581159
public function testMakePathRelativeWithRelativeEndPath()
11591160
{
1160-
$this->expectException(\Symfony\Component\Filesystem\Exception\InvalidArgumentException::class);
1161+
$this->expectException(InvalidArgumentException::class);
11611162
$this->expectExceptionMessage('The end path "var/lib/symfony/" is not absolute.');
11621163
$this->assertSame('../../../', $this->filesystem->makePathRelative('var/lib/symfony/', '/var/lib/symfony/src/Symfony/Component'));
11631164
}

0 commit comments

Comments
 (0)