Automattic / wordbless

WorDBless allows you to use WordPress core functions in your PHPUnit tests without having to set up a database and the whole WordPress environment
Other
131 stars 6 forks source link

Use Yoast Polyfill? #52

Closed kraftbj closed 1 year ago

kraftbj commented 2 years ago

When we extend using WorDBless as the base test class, we run into issues where we can't use SetupBeforeClass in a situation where we need cross-compat between various versions of PHP.

Yoast provides a polyfill, but I don't believe we use both at the same time. Would this be something WorDBless could/should do?

e.g. https://github.com/Yoast/PHPUnit-Polyfills#testcases

szepeviktor commented 2 years ago

we run into issues

Can be read here https://github.com/Automattic/jetpack/pull/23687#discussion_r838830829