[Tests] PHPUnit Optimizations
minor #11962 [Tests] PHPUnit Optimizations (lyrixx)

This PR was merged into the 2.6-dev branch.

Discussion
----------

[Tests] PHPUnit Optimizations

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

790127c [Tests] PHPUnit Optimizations