Skip to content

fix: Fix unit tests #73

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
merged 2 commits into from
Apr 15, 2025
Merged

fix: Fix unit tests #73

merged 2 commits into from
Apr 15, 2025

Conversation

haacked
Copy link
Contributor

@haacked haacked commented Apr 15, 2025

Several tests were failing. They had hard-coded version number expectations which failed the tests when the version was incremented.

This PR changes the tests to use the VERSION constant for the expectations.

Also added a bin/test script to run tests

haacked added 2 commits April 15, 2025 12:55
They had hard-coded version number expectations which failed the tests when the version was incremented.

This commit changes the tests to use the VERSION constant for the expectations.
@haacked haacked requested a review from Copilot April 15, 2025 20:14
Copy link

@Copilot 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.

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • test/FeatureFlagTest.php: Language not supported
  • test/PostHogTest.php: Language not supported
Comments suppressed due to low confidence (1)

README.md:16

  • Ensure that the bin/test script has the correct executable permissions or add a note in the documentation about setting them, to avoid issues when running tests.
3. `bin/test` to run tests (this script calls `./vendor/bin/phpunit --verbose test`)

@haacked haacked requested a review from dmarticus April 15, 2025 20:15
@haacked haacked merged commit 997cb89 into master Apr 15, 2025
6 checks passed
@haacked haacked deleted the haacked/fix-unit-tests branch April 16, 2025 15:53
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.

1 participant