Skip to content

Fixed tests in Unit and Integration#46

Merged
simon-mundy merged 9 commits intophp-db:0.2.xfrom
simon-mundy:result-count-issue
Feb 26, 2026
Merged

Fixed tests in Unit and Integration#46
simon-mundy merged 9 commits intophp-db:0.2.xfrom
simon-mundy:result-count-issue

Conversation

@simon-mundy
Copy link
Member

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA yes
House Keeping yes

Description

This release fixes all the Testing errors introduced since #42 and ensures that (with the correct setup in phpunit.xml) the Integration tests are also able to be run.

The majority of files deal with older/non-existent paths due to the new Namespacing and refactoring. Other changes ensure the correct application of Factories and method signatures.

NOTE: One additional fix is to the Pdo\Driver where changing the $rowCount to null instead of 0 fixes a bug which can affect PhpDb\Result count() methods.

Fixes

  • Reset phpstan baseline
  • Ensure phpunit.xml.dist is set to ignore integration testing by default
  • Various phpcs/phpcbf fixes to use functions/classes and reordering
  • Type for ServiceManager not ContainerInterface when testing (we use SM in any case)
  • Ensure compatibility with Metadata updates

Signed-off-by: Simon Mundy <simon.mundy@peptolab.com>
@simon-mundy simon-mundy added this to the 0.2.0 milestone Feb 25, 2026
@simon-mundy simon-mundy requested a review from tyrsson February 25, 2026 09:29
@simon-mundy simon-mundy self-assigned this Feb 25, 2026
@simon-mundy simon-mundy added BugFix HouseKeeping Routine cleanup, formatting etc. bug Something isn't working db: MySQL priority: Critical labels Feb 25, 2026
Resolves conflicts from PRs php-db#44 and php-db#45 (namespace restructuring,
config key changes, import cleanup). Removes unused result factories.
Copy link
Member

@tyrsson tyrsson left a comment

Choose a reason for hiding this comment

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

the .laminas-ci phpunit.xml and pre-run.sh are not being added back.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in @phpdb-mysql Feb 25, 2026
Changed 'stub' to 'mock'

Signed-off-by: Simon Mundy <46739456+simon-mundy@users.noreply.github.com>
Signed-off-by: Simon Mundy <46739456+simon-mundy@users.noreply.github.com>
Signed-off-by: Simon Mundy <46739456+simon-mundy@users.noreply.github.com>
Signed-off-by: Simon Mundy <46739456+simon-mundy@users.noreply.github.com>
@simon-mundy
Copy link
Member Author

the .laminas-ci phpunit.xml and pre-run.sh are not being added back.

Reverted

@simon-mundy simon-mundy merged commit 328bd24 into php-db:0.2.x Feb 26, 2026
13 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in @phpdb-mysql Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working BugFix db: MySQL HouseKeeping Routine cleanup, formatting etc. priority: Critical

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants