Skip to content

Commit

Permalink
Check test for xdebug (barryvdh#1256)
Browse files Browse the repository at this point in the history
* Update ViewCollectorTest.php

* Update ViewCollectorTest.php
  • Loading branch information
barryvdh authored Nov 12, 2021
1 parent e06041c commit 0f12adc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/DataCollector/ViewCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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']
);
});
}
Expand Down

0 comments on commit 0f12adc

Please sign in to comment.