Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add anonymous class support in the InternalInterfaces and NewInterfaces sniffs. #396

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 10, 2017

While there have no new interfaces been introduced since the introduction of anonymous classes, this will make the sniff forward compatible for when those are introduced.
For InternalInterfaces, the change is already relevant.

Includes unit tests.

As there are now more tests, largely reworked the InternalInterfaces unit tests to data providers.
In a similar vain, reworked the testUnsupportedMethods test in the NewInterfaces unit test file to use a data provider.

One of several PRs to fix #351

…es sniffs.

While there have no new interfaces been introduced since the introduction of anonymous classes, this will make the sniff forward compatible for when those are introduced.
For InternalInterfaces, the change is already relevant.

Includes unit tests.

As there are now more tests, largely reworked the InternalInterfaces unit tests to data providers.
In a similar vain, reworked the `testUnsupportedMethods` test in the `NewInterfaces` unit test file to use a data provider.
@coveralls
Copy link

coveralls commented Apr 10, 2017

Coverage Status

Coverage increased (+0.02%) to 95.913% when pulling c337455 on jrfnl:feature/anonymous-class-vs-interface-sniffs into aabac47 on wimg:master.

@wimg wimg merged commit 583757c into PHPCompatibility:master Apr 26, 2017
@jrfnl jrfnl deleted the feature/anonymous-class-vs-interface-sniffs branch April 26, 2017 15:19
@jrfnl jrfnl added this to the 7.1.4 milestone May 3, 2017
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.

Improve sniff support for anonymous classes
3 participants