Skip to content

setUpBeforeClass isn't called before setting up data providers #6838

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

Open
earthiverse opened this issue Mar 17, 2025 · 0 comments
Open

setUpBeforeClass isn't called before setting up data providers #6838

earthiverse opened this issue Mar 17, 2025 · 0 comments

Comments

@earthiverse
Copy link

I updated all my dependencies, and now the constructors are marked final.

So, I set up a static class property in setUpBeforeClass instead, but when I try to run the test, I get

Error: Typed static property Test::$property must not be accessed before initialization

I have a workaround by calling self::setUpBeforeClass(); at the top of the data providers, and ensuring the logic in setUpBeforeClass handles being run multiple times.

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

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy