Skip to content

Add basic unit-tests #30

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Add basic unit-tests #30

wants to merge 8 commits into from

Conversation

Potherca
Copy link
Member

@Potherca Potherca commented May 5, 2025

This MR adds first-draft unit-tests for both classes in this repo.

As can be seen by the build, the tests pass for PHP 8.4 but composer install fails as the required laminas/laminas-diactoros version does not support PHP 8.4

@Potherca Potherca requested a review from ylebre May 5, 2025 14:12
@Potherca Potherca self-assigned this May 5, 2025
@@ -20,13 +20,13 @@
"require": {
"php": "^8.0",
"ext-mbstring": "*",
"laminas/laminas-diactoros": "^2.14",
"laminas/laminas-diactoros": "^3.0",
Copy link
Member Author

@Potherca Potherca May 5, 2025

Choose a reason for hiding this comment

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

@ylebre Not sure whether to go for ^3 or ^v2 | ^v3 here...

Copy link
Member

Choose a reason for hiding this comment

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

Unless we are sure v3 works for older php versions, we should do 2|3.

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