From 0a35ab61d41d9a01b7959145f7e70e7ae8fcfe70 Mon Sep 17 00:00:00 2001 From: Andrew Minion Date: Sun, 11 Feb 2024 03:06:18 -0600 Subject: [PATCH] set xdebug ini (#1257) * set xdebug ini See https://github.com/barryvdh/laravel-debugbar/pull/1224#issuecomment-966907943 * remove check for xdebug support * use ini_set for phpunit 8.5.x * Revert "remove check for xdebug support" This reverts commit e25e46eec620132be32e0599597e4d36653f40b4. --- phpunit.xml.dist | 1 + tests/DataCollector/ViewCollectorTest.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 11da2e94f..b8b04d2b3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -28,5 +28,6 @@ + diff --git a/tests/DataCollector/ViewCollectorTest.php b/tests/DataCollector/ViewCollectorTest.php index bea31f9aa..c5910be40 100644 --- a/tests/DataCollector/ViewCollectorTest.php +++ b/tests/DataCollector/ViewCollectorTest.php @@ -10,6 +10,13 @@ class ViewCollectorTest extends TestCase { use RefreshDatabase; + protected function setUp(): void + { + parent::setUp(); + + ini_set('xdebug.file_link_format', 'vscode://file/%f:%l'); + } + public function testIdeLinksAreAbsolutePaths() { if (!ini_get('xdebug.file_link_format')) {