Skip to content

Move tests to PHPUnit 10+ - #38

Merged
danog merged 1 commit into
masterfrom
phpunit-10
Oct 20, 2026
Merged

danog merged 1 commit into
masterfrom
phpunit-10

Conversation

@danog

@danog danog commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

The tests are pinned to PHPUnit 9, and codeception-psalm-module 0.14.0 never counts passing steps as assertions.

Before (module 0.14.0):

OK (8 tests, 0 assertions)

After (PHPUnit 10.5, 11.5 and 13, module branch danog/codeception-psalm-module@phpunit-10):

OK (8 tests, 10 assertions)

Draft until that module change is released; ^0.14.1 assumes it is tagged 0.14.1.

https://claude.ai/code/session_01WNSb29tptiTQoc44Tk7XZW

codeception-psalm-module 0.14.0 skips scenarios by throwing
PHPUnit\Framework\SkippedTestError, which PHPUnit 10 removed; the next
module release uses Assert::markTestSkipped() instead.

Also drop the acceptance helper's unused imports, one of which was that
PHPUnit 9 class.

Claude-Session: https://claude.ai/code/session_01WNSb29tptiTQoc44Tk7XZW
@danog
danog marked this pull request as ready for review October 20, 2026 09:50
@danog
danog merged commit 0c77c5e into master Oct 20, 2026
5 of 10 checks passed
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