Skip to content

Conversation

@rodrigoprimo
Copy link
Collaborator

Description

In preparation for PHPCS 4.0, which changes the tokenization of namespaced names, this PR adds tests with all forms of namespaced function calls (partially qualified, fully qualified, and namespace-relative using the namespace keyword) as well as fully qualified global function calls to the WordPress.WP.EnqueuedResourceParameters sniff.

Two different tests for fully qualified global function calls are included to cover all global functions referenced directly in the EnqueuedResourceParametersSniff::process_parameters method.

This is a follow-up to #2633, which did not include tests for this sniff to avoid conflicts with #2630, which has since been merged.

Suggested changelog entry

N/A

I'm adding two different tests for fully qualified global function calls to cover all the global functions that are referenced directly in the `EnqueuedResourceParametersSniff::process_parameters` method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants