Skip to content

set xdebug ini #1257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

macbookandrew
Copy link
Contributor

Context: #1224 (comment), #1256

The tests didn't run properly, skipped them with #1256 for now. I think it relies on the specific format being available, so maybe set that in the setUp()?

@barryvdh I tried using ini_set('xdebug.file_link_format', 'vscode://file/%f:%l') in setUp() and it just wouldn’t set it. I also tried the setUpBeforeClass() method from phpunit to hook in a bit earlier and that didn’t work either.

Setting it in the phpunit.xml.dist file was the only way I was able to add that in so it would run.

@barryvdh
Copy link
Owner

So do we still need to skip the test?

@macbookandrew
Copy link
Contributor Author

Oh, good point…I just removed.

@barryvdh
Copy link
Owner

Yeah doesn't work :(

@macbookandrew
Copy link
Contributor Author

I’ve been using phpunit 9.5.x but looks like your tests are using phpunit 8.5.x.

The phpunit.dist.xml change does not work for phpunit 8.5 but php’s ini_set() in setUp() does. 🤷🏻‍♂️

@macbookandrew
Copy link
Contributor Author

Apparently that doesn’t work either.

Should I add the conditional skip-test back?

@barryvdh
Copy link
Owner

Hmm I guess

@barryvdh barryvdh closed this Feb 11, 2024
@barryvdh barryvdh reopened this Feb 11, 2024
@barryvdh barryvdh merged commit 0a35ab6 into barryvdh:master Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants