Skip to content

Simplify env vars in tests#90

Merged
spaze merged 3 commits intomainfrom
spaze/tests-env-vars
Apr 11, 2026
Merged

Simplify env vars in tests#90
spaze merged 3 commits intomainfrom
spaze/tests-env-vars

Conversation

@spaze
Copy link
Copy Markdown
Owner

@spaze spaze commented Apr 11, 2026

No description provided.

@spaze spaze self-assigned this Apr 11, 2026
Copilot AI review requested due to automatic review settings April 11, 2026 14:14
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to centralize and simplify how tests handle environment-driven skipping/failing (network-dependent tests and “extension not loaded” tests), and to expose these behaviors via Composer scripts and CI.

Changes:

  • Refactors the two “no extension” .phpt tests to use a shared skipIfExtensionLoaded() helper.
  • Enhances tests/bootstrap.php skip messages and adds skipIfExtensionLoaded() helper.
  • Adds a tester-include-skipped Composer script and updates docs/CI workflow to use it; restructures tester/tester-no-extensions scripts.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/Signature/Providers/SecurityTxtSignatureGnuPgProviderNoExtensionTest.phpt Uses shared helper instead of inline extension/env-var logic.
tests/Fetcher/HttpClients/SecurityTxtFetcherCurlClientNoExtensionTest.phpt Uses shared helper instead of inline extension/env-var logic.
tests/bootstrap.php Adds skipIfExtensionLoaded() and improves skip messaging for network tests.
composer.json Introduces tester-include-skipped and restructures tester scripts (currently problematic).
CLAUDE.md Documents the new composer tester-include-skipped command.
.github/workflows/php-tester-include-skipped.yml Switches CI to run composer tester-include-skipped.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread composer.json
Comment thread composer.json
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread composer.json
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@spaze spaze merged commit cd4c691 into main Apr 11, 2026
10 checks passed
@spaze spaze deleted the spaze/tests-env-vars branch April 11, 2026 14:40
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