Skip to content

Fix integration tests - #34

Merged
tyrsson merged 2 commits into
3.0.xfrom
fix-integration-tests
Mar 28, 2025
Merged

Fix integration tests#34
tyrsson merged 2 commits into
3.0.xfrom
fix-integration-tests

Conversation

@settermjd

Copy link
Copy Markdown
Collaborator

This PR depends on #32. Please do not merge it until that PR is merged.

This PR fixes up the integration tests so that they throw neither errors nor warnings.

This change refactors some of the test code to support PHPUnit's most
recent iteration of its event system. The previous iteration worked for
earlier versions, but there was a newer version release in PHPUnit
10.0.7.

Signed-off-by: Matthew Setter <matthew@matthewsetter.com>
This change fixes up the issues with the integration tests. Most of them
were trivial, such as marking data provider functions as abstract.
However, one was less so. It involved renaming AbstractAdapterTest to
AbstractAdapterTestCase for the reasons mentioned in
sebastianbergmann/phpunit#5523.

Signed-off-by: Matthew Setter <matthew@matthewsetter.com>
@settermjd settermjd added the enhancement New feature or request label Mar 21, 2025
@settermjd settermjd added this to the 3.0.0 milestone Mar 21, 2025
@settermjd settermjd self-assigned this Mar 21, 2025

@tyrsson tyrsson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My only real suggestions would be to update the test to use Attributes for coverage and Dataproviders along with return typing the methods.

Will wait on your response before merging in case you want to handle those in this PR.

Comment thread phpunit.xml.dist
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in @laminas-db Mar 27, 2025
@tyrsson
tyrsson merged commit 08d887b into 3.0.x Mar 28, 2025
@github-project-automation github-project-automation Bot moved this from In Progress to Done in @laminas-db Mar 28, 2025
@tyrsson
tyrsson deleted the fix-integration-tests branch March 28, 2025 04:07
@tyrsson tyrsson modified the milestones: 1.0.0, 0.1.x Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants