Skip to content

Commit

Permalink
Elaborate
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 13, 2024
1 parent de24e7e commit ecd9951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/MockObject/Runtime/Api/MockObjectApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function expects(InvocationOrder $matcher): InvocationMockerBuilder
assert($this instanceof StubInternal);

if (!$this->__phpunit_wasGeneratedAsMockObject()) {
$message = 'Configuring expectations on test doubles that were created as test stubs is deprecated. Support for this will be removed in PHPUnit 12.';
$message = 'Expectations configured on test doubles that are created as test stubs are no longer verified since PHPUnit 10. Test doubles that are created as test stubs will no longer have the expects() method in PHPUnit 12. Update your test code to use createMock() instead of createStub(), for example.';

try {
$test = TestMethodBuilder::fromCallStack();
Expand Down

0 comments on commit ecd9951

Please sign in to comment.