Skip to content

Commit

Permalink
set xdebug ini (#1257)
Browse files Browse the repository at this point in the history
* set xdebug ini

See #1224 (comment)

* remove check for xdebug support

* use ini_set for phpunit 8.5.x

* Revert "remove check for xdebug support"

This reverts commit e25e46e.
  • Loading branch information
macbookandrew authored Feb 11, 2024
1 parent fa8a757 commit 0a35ab6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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>
7 changes: 7 additions & 0 deletions tests/DataCollector/ViewCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 0a35ab6

Please sign in to comment.