Skip to content

Commit ac9b684

Browse files
minor symfony#53881 [VarDumper] fix test (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [VarDumper] fix test | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 7b5366e fix test
2 parents 306964d + 7b5366e commit ac9b684

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Component/VarDumper/Tests/Dumper/CliDumperTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\VarDumper\Tests\Dumper;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Component\ErrorHandler\ErrorRenderer\FileLinkFormatter;
1516
use Symfony\Component\VarDumper\Caster\ClassStub;
1617
use Symfony\Component\VarDumper\Caster\CutStub;
1718
use Symfony\Component\VarDumper\Cloner\Data;
@@ -503,6 +504,10 @@ public function testCollapse()
503504

504505
public function testFileLinkFormat()
505506
{
507+
if (!class_exists(FileLinkFormatter::class)) {
508+
$this->markTestSkipped(sprintf('Class "%s" is required to run this test.', FileLinkFormatter::class));
509+
}
510+
506511
$data = new Data([
507512
[
508513
new ClassStub(self::class),

0 commit comments

Comments
 (0)