Fix failing PHPUnit tests#188
Conversation
thelovekesh
left a comment
There was a problem hiding this comment.
Some nitpicks. Rest LGTM!
| .phpunit.cache | ||
| .phpunit.result.cache |
There was a problem hiding this comment.
| .phpunit.cache | |
| .phpunit.result.cache | |
| *.[Cc]ache |
There was a problem hiding this comment.
I personally prefer the more verbose format
| beStrictAboutTestsThatDoNotTestAnything="true" | ||
| beStrictAboutTodoAnnotatedTests="true" | ||
| colors="true" | ||
| verbose="true"> |
There was a problem hiding this comment.
We might want to remove it from here, as PHPUnit doesn't support it in future releases. Verbosity can be handled from CLI instead if required?
| beStrictAboutTodoAnnotatedTests="true" | ||
| colors="true" | ||
| verbose="true"> | ||
| <testsuite name="wp-cli/package-command tests"> |
There was a problem hiding this comment.
| <testsuite name="wp-cli/package-command tests"> | |
| <testsuite name="default"> |
It can remain default given this test file is specific to this package. Also, I think we should add defaultTestSuite="default" attribute in the <phpunit> element?
There was a problem hiding this comment.
This is more consistent with other commands though. Main thing is that the name is defined, which it previously wasn't.
Fixes compatibility with latest PHPUnit on PHP 8.1+ after wp-cli/wp-cli-tests#206