Skip to content

Commit d8b64db

Browse files
Merge branch '5.2' into 5.x
* 5.2: Use createMock() and use import instead of FQCN
2 parents 0f20e29 + 6bb8b36 commit d8b64db

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)