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 sniffs that extend the AbstractFunctionParameterSniff class when necessary. Some test files already contained part or all of the required tests.

Tests for WordPress.WP.EnqueuedResourceParameters are not included in this PR as they would conflict with #2630. I will add tests for this sniff in a separate PR once #2630 is merged.

In some cases, it was necessary to move syntax error tests to a separate file before adding the new tests.

Suggested changelog entry

N/A

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.

1 participant