From 25d79cfccfc12e84e7a63a248c3f0720fdd92db6 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 22 Jan 2021 13:09:22 +0100 Subject: [PATCH] Use createMock() and use import instead of FQCN --- Tests/FinderTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/FinderTest.php b/Tests/FinderTest.php index f1a3af43..db3c4a55 100644 --- a/Tests/FinderTest.php +++ b/Tests/FinderTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Finder\Tests; +use Symfony\Component\Finder\Exception\DirectoryNotFoundException; use Symfony\Component\Finder\Finder; class FinderTest extends Iterator\RealIteratorTestCase @@ -923,7 +924,7 @@ public function testIn() public function testInWithNonExistentDirectory() { - $this->expectException(\Symfony\Component\Finder\Exception\DirectoryNotFoundException::class); + $this->expectException(DirectoryNotFoundException::class); $finder = new Finder(); $finder->in('foobar'); }