Skip to content

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Jan 28, 2026

Following snippets are no longer valid in PHPUnit 12:

$someMock = $this->createMock(\stdClass::class);
$someMock->method('some');

and synonymous:

$someMock = $this->createMock(\stdClass::class);
$someMock->expectx($this->any())->method('some');

@TomasVotruba TomasVotruba changed the title tv default at least [phpunit 12] Add ExplicitMockExpectsCallRector Jan 28, 2026
@TomasVotruba TomasVotruba merged commit 6dc6b44 into main Jan 28, 2026
7 checks passed
@TomasVotruba TomasVotruba deleted the tv-default-at-least branch January 28, 2026 23:20
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