Skip to content

Commit 17ed9f1

Browse files
OskarStarknicolas-grekas
authored andcommitted
Use createMock() and use import instead of FQCN
1 parent a170990 commit 17ed9f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/DumperTest.php

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

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Yaml\Dumper;
16+
use Symfony\Component\Yaml\Exception\DumpException;
1617
use Symfony\Component\Yaml\Parser;
1718
use Symfony\Component\Yaml\Tag\TaggedValue;
1819
use Symfony\Component\Yaml\Yaml;
@@ -194,7 +195,7 @@ public function testObjectSupportDisabledButNoExceptions()
194195

195196
public function testObjectSupportDisabledWithExceptions()
196197
{
197-
$this->expectException(\Symfony\Component\Yaml\Exception\DumpException::class);
198+
$this->expectException(DumpException::class);
198199
$this->dumper->dump(['foo' => new A(), 'bar' => 1], 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE);
199200
}
200201

0 commit comments

Comments
 (0)