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

[PhpUnitBridge] Add assertIsX methods in ForwardCompatTestTrait #32848

Closed

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Aug 1, 2019

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32844
License MIT
Doc PR N/A

PhpUnit 8 deprecates the method assertInternalType in favor of assertIsX. This PR add the polyfill methods assertIsX in the ForwardCompatTestTraitForV5. It'sq a requirement to update tests in order to be compatible with both PhpUnit 5 and 8

note: this PR split the PR #32846 to provides methods in the branch master in order to fix the test suite for #32846

@jderusse
Copy link
Member Author

jderusse commented Aug 1, 2019

fabbot want to remove @return void which should be kept #32846 (comment)

*
* @return void
*/
public static function assertIsArray($actual, $message = '')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static function assertIsArray($actual, $message = '')
public static function assertIsArray($actual, string $message = '')

should be no problem, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not compatible with php 5. The bridge don't use the same version of PHP.

"require": {
"php": ">=5.5.9 EVEN ON LATEST SYMFONY VERSIONS TO ALLOW USING",
"php": "THIS BRIDGE WHEN TESTING LOWEST SYMFONY VERSIONS.",
"php": ">=5.5.9"
},

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jderusse
Copy link
Member Author

jderusse commented Aug 1, 2019

closing this PR as #32846 (already merged) contains the code

@jderusse jderusse closed this Aug 1, 2019
@nicolas-grekas nicolas-grekas added this to the 5.0 milestone Aug 1, 2019
@jderusse jderusse deleted the compat-phpunit9-assertInternalType branch August 2, 2019 12:14
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.

None yet

4 participants