Skip to content

Commit

Permalink
Use createMock() and use import instead of FQCN
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and nicolas-grekas committed Jan 27, 2021
1 parent 491036d commit 25d79cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/FinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');
}
Expand Down

0 comments on commit 25d79cf

Please sign in to comment.