Skip to content

Commit 262d033

Browse files
Merge branch '4.4' into 5.1
* 4.4: Use createMock() and use import instead of FQCN
2 parents 4ff1d2e + 83a6fee commit 262d033

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
/**
@@ -1194,14 +1195,14 @@ public function providePathsForMakePathRelative()
11941195

11951196
public function testMakePathRelativeWithRelativeStartPath()
11961197
{
1197-
$this->expectException(\Symfony\Component\Filesystem\Exception\InvalidArgumentException::class);
1198+
$this->expectException(InvalidArgumentException::class);
11981199
$this->expectExceptionMessage('The start path "var/lib/symfony/src/Symfony/Component" is not absolute.');
11991200
$this->assertSame('../../../', $this->filesystem->makePathRelative('/var/lib/symfony/', 'var/lib/symfony/src/Symfony/Component'));
12001201
}
12011202

12021203
public function testMakePathRelativeWithRelativeEndPath()
12031204
{
1204-
$this->expectException(\Symfony\Component\Filesystem\Exception\InvalidArgumentException::class);
1205+
$this->expectException(InvalidArgumentException::class);
12051206
$this->expectExceptionMessage('The end path "var/lib/symfony/" is not absolute.');
12061207
$this->assertSame('../../../', $this->filesystem->makePathRelative('var/lib/symfony/', '/var/lib/symfony/src/Symfony/Component'));
12071208
}

0 commit comments

Comments
 (0)