Skip to content

Commit 25d79cf

Browse files
OskarStarknicolas-grekas
authored andcommitted
Use createMock() and use import instead of FQCN
1 parent 491036d commit 25d79cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/FinderTest.php

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

1212
namespace Symfony\Component\Finder\Tests;
1313

14+
use Symfony\Component\Finder\Exception\DirectoryNotFoundException;
1415
use Symfony\Component\Finder\Finder;
1516

1617
class FinderTest extends Iterator\RealIteratorTestCase
@@ -923,7 +924,7 @@ public function testIn()
923924

924925
public function testInWithNonExistentDirectory()
925926
{
926-
$this->expectException(\Symfony\Component\Finder\Exception\DirectoryNotFoundException::class);
927+
$this->expectException(DirectoryNotFoundException::class);
927928
$finder = new Finder();
928929
$finder->in('foobar');
929930
}

0 commit comments

Comments
 (0)