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

PHPLIB-1525 Removes dependency to Symfony PHPUnit bridge #1413

Open
wants to merge 6 commits into
base: v1.x
Choose a base branch
from

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Sep 17, 2024

Fix PHPLIB-1525

The PHPUnit Bridge provides utilities to report legacy tests and usage of deprecated code and helpers for mocking native functions related to time, DNS and class existence.

We don't use any of this features.

The bridge also helps in maintaining custom constraints compatible with multiple versions of PHPUnit, due to type changes between versions 7, 8 and 9. This should longer be required as the Constraint class is fully typed.

drivers-atlas-testing will require an update:

tests/GridFS/StreamWrapperFunctionalTest.php Outdated Show resolved Hide resolved
tests/ExamplesTest.php Outdated Show resolved Hide resolved
@GromNaN GromNaN marked this pull request as ready for review September 17, 2024 21:01
@GromNaN GromNaN requested a review from a team as a code owner September 17, 2024 21:01
@GromNaN GromNaN requested review from jmikola and removed request for jmikola September 17, 2024 21:01
CONTRIBUTING.md Outdated

```console
$ SYMFONY_PHPUNIT_VERSION=8.5 vendor/bin/simple-phpunit
$ vendor/bin/phpunit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We document running the test suite with composer run test a few lines above (can't add a comment to the corresponding context line). We could document the direct way of calling the phpunit binary up there and remove this entire paragraph.

tests/ExamplesTest.php Outdated Show resolved Hide resolved
@GromNaN GromNaN force-pushed the PHPLIB-1525 branch 2 times, most recently from 6e8cdd4 to bc7cad4 Compare September 18, 2024 20:50
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