Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove PHPUnit_Framework_MockObject_MockObject #3123

Closed
sebastianbergmann opened this issue May 12, 2018 · 0 comments
Closed

Remove PHPUnit_Framework_MockObject_MockObject #3123

sebastianbergmann opened this issue May 12, 2018 · 0 comments
Labels
feature/test-doubles Stubs and Mock Objects type/backward-compatibility Something will be/is intentionally broken
Milestone

Comments

@sebastianbergmann
Copy link
Owner

In time for the release of PHPUnit 8:

  • Rename PHPUnit_Framework_MockObject_MockObject to PHPUnit\Framework\MockObject\MockObject
  • Remove src/ForwardCompatibility/MockObject.php

This is a BC break (that should have happened together with PHPUnit 7) because many developers use annotations such as

/** @var Foo|PHPUnit_Framework_MockObject_MockObject $foo*/
$foo = $this->createMock(Foo::class);

in their code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/test-doubles Stubs and Mock Objects type/backward-compatibility Something will be/is intentionally broken
Projects
None yet
Development

No branches or pull requests

1 participant