Skip to content

Tests: Use Stubs instead of Mocks#4626

Merged
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:stubs
Dec 10, 2025
Merged

Tests: Use Stubs instead of Mocks#4626
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:stubs

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Dec 9, 2025

No expectations were configured for the mock object for XY. You should refactor your test code and use a test stub instead.

No expectations were configured for the mock object for PHPStan\Analyser\Scope. You should refactor your test code and use a test stub instead.
@staabm staabm mentioned this pull request Dec 10, 2025
@ondrejmirtes ondrejmirtes merged commit d39a10c into phpstan:2.1.x Dec 10, 2025
366 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the stubs branch December 10, 2025 07:57
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