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 e25e46eec6.
This commit is contained in:
Andrew Minion 2024-02-11 03:06:18 -06:00 committed by GitHub
parent fa8a75758b
commit 0a35ab61d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -28,5 +28,6 @@
<php>
<env name="DEBUGBAR_ENABLED" value="true"/>
<env name="DB_CONNECTION" value="testing"/>
<ini name="xdebug.file_link_format" value="vscode://file/%f:%l"/>
</php>
</phpunit>

View File

@ -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')) {