minor #16186 [2.7][tests] Use @requires annotation when possible (nicolas-grekas)
minor #16186 [2.7][tests] Use @requires annotation when possible (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[2.7][tests] Use @requires annotation when possible

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

Commits
-------

b028aea [tests] Use @requires annotation when possible

symfony/HttpKernel,symfony/http-kernel