Skip to content

Commit df4401f

Browse files
committed
fix test
1 parent b1040d4 commit df4401f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/Dumper/CliDumperTest.php

+5
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)