Skip to content

test: Don't use PHPUnit assertions in Behat's own test suite - #1872

Open
carlos-granados wants to merge 2 commits into
Behat:3.xfrom
carlos-granados:remove-phpunit-assertions
Open

test: Don't use PHPUnit assertions in Behat's own test suite#1872
carlos-granados wants to merge 2 commits into
Behat:3.xfrom
carlos-granados:remove-phpunit-assertions

Conversation

@carlos-granados

@carlos-granados carlos-granados commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

First step towards #1746: neither our FeatureContext nor the fixture contexts use PHPUnit assertions any more, so that core can later drop PHPUnitExceptionStringer without breaking our tests. The fixtures now use a small Behat\Tests\Fixtures\Assert helper that keeps the existing message wording.

The failures on PHP 8.4 and 8.5 are unrelated to this change: #1873 needs to be merged and this branch rebased before all tests pass.

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