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

feat: phpunit 10 support #263

Closed
wants to merge 5 commits into from
Closed

Conversation

nunomaduro
Copy link
Member

@nunomaduro nunomaduro commented Jan 24, 2021

There is an upcoming major version bump for PHPUnit. This seems to contain some breaking changes that affect Pest.


Plugins

Expectations Plugin: pestphp/pest-plugin-expectations#5.


Current issues

  • Custom TestSuiteLoader deprecation
    I think that this is now indirectly causing issues as it now seems to expect any selected file in the testsuite directory to contain a PHP class. So if the testsuite directory is set to tests/ and suffix=".php" (as per our current suite), it tries loading all files that are pascal case as a class. This means that tests/Autoload.php is loaded as a class, as are all the datasets, etc.

    This basically means that all Pest-syntax tests will fail, as they don't contain a class in the files. 😬

@nunomaduro
Copy link
Member Author

@lukeraymonddowning @owenvoke Any of you would like to spend time on this one? Won't wanna lie, this may take some time to investigate...

@owenvoke
Copy link
Member

I might have another go at it, should also be easier to manage now that those core plugins have been merged. 👍🏻

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.

3 participants