Skip to content

User Deprecated warnings #73

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

Closed
stevan-tosic opened this issue Aug 22, 2024 · 4 comments
Closed

User Deprecated warnings #73

stevan-tosic opened this issue Aug 22, 2024 · 4 comments

Comments

@stevan-tosic
Copy link

stevan-tosic commented Aug 22, 2024

Those warnings are shown when symfony/phpunit-bridge is used, otherwise, there is no warning output.

User Deprecated: The "PHPUnit\Framework\BaseTestListener" class is considered internal. It may change without further notice. You should not use it from "phpmock\phpunit\MockDisablerPHPUnit7".
 
User Deprecated: The "PHPUnit\Framework\BaseTestListener" class is considered internal. It may change without further notice. You should not use it from "phpmock\phpunit\MockDisablerPHPUnit7".
 
User Deprecated: The "PHPUnit\Framework\MockObject\Rule\InvocationOrder" class is considered internal This class is not covered by the backward compatibility promise for PHPUnit. It may change without further notice. You should not use it from "phpmock\phpunit\DefaultArgumentRemoverReturnTypes84".

User Deprecated: The "PHPUnit\Framework\MockObject\Rule\InvocationOrder" class is considered internal This class is not covered by the backward compatibility promise for PHPUnit. It may change without further notice. You should not use it from "phpmock\phpunit\DefaultArgumentRemoverReturnTypes84"
@michalbundyra
Copy link
Member

See #70 and #71 Thanks.

@michalbundyra
Copy link
Member

Ah, actually these are different, sorry 🤦

@michalbundyra michalbundyra reopened this Aug 22, 2024
@michalbundyra
Copy link
Member

But yeah, this library is "hacking" into phpunit, to get it working, so we are using some 'internal' phpunit stuff... I guess the only way would be just to silence user deprecations in your project. Not much we can do here 🤷‍♂️

@stevan-tosic
Copy link
Author

@michalbundyra thank you for the fast response.

I have resolved the warning by migrating to https://github.com/php-mock/php-mock-mockery
(not sure if this can be considered as a solution it was only a few built-in PHP method mocks)

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

No branches or pull requests

2 participants