diff --git a/tests/DataCollector/ViewCollectorTest.php b/tests/DataCollector/ViewCollectorTest.php index 1b3c6a31..67673847 100644 --- a/tests/DataCollector/ViewCollectorTest.php +++ b/tests/DataCollector/ViewCollectorTest.php @@ -12,6 +12,13 @@ class ViewCollectorTest extends TestCase public function testIdeLinksAreAbsolutePaths() { + if (!ini_get('xdebug.file_link_format')) { + $this->markTestSkipped( + 'The Xdebug extension is not available.' + ); + return; + } + debugbar()->boot(); /** @var \Barryvdh\Debugbar\DataCollector\ViewCollector $collector */ @@ -23,7 +30,7 @@ public function testIdeLinksAreAbsolutePaths() tap(Arr::first($collector->collect()['templates']), function (array $template) { $this->assertEquals( 'vscode://file/' . realpath(__DIR__ . '/../resources/views/dashboard.blade.php') . ':1', - $template['xdebug_link']['url'], + $template['xdebug_link']['url'] ); }); }