Skip to content

[PHPUnitBridge] Add an implementation just for php 7.0 #27086

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

Merged
merged 1 commit into from
Apr 30, 2018

Conversation

greg0ire
Copy link
Contributor

@greg0ire greg0ire commented Apr 29, 2018

Q A
Branch? 3.4, because the bug only appears on that branch and up
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT
Doc PR symfony/symfony-docs#...

php 7 does not have the void return type, which means we have to have a specific class for the php 7.0 + phpunit 6 combination.

php 7 does not have the void return type.
@greg0ire
Copy link
Contributor Author

@juliendufresne @nicolas-grekas please review

@@ -24,7 +24,7 @@ class TestRunnerForV6 extends BaseRunner
/**
* {@inheritdoc}
*/
protected function handleConfiguration(array &$arguments): void
protected function handleConfiguration(array &$arguments)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The existing runner looses its void return type, but keeps the code changes (doesn't return anything, extends from PHPUnit\TextUI\TestRunner)

*
* @internal
*/
class TestRunnerForV7 extends BaseRunner
Copy link
Contributor Author

@greg0ire greg0ire Apr 29, 2018

Choose a reason for hiding this comment

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

This one is the former TestRunnerForV6, renamed

@greg0ire greg0ire changed the title Add an implementation just for php 7.0 [PHPUnitBridge] Add an implementation just for php 7.0 Apr 29, 2018
@greg0ire
Copy link
Contributor Author

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Apr 30, 2018
@nicolas-grekas
Copy link
Member

Thank you @greg0ire.

@nicolas-grekas nicolas-grekas merged commit fc69307 into symfony:3.4 Apr 30, 2018
nicolas-grekas added a commit that referenced this pull request Apr 30, 2018
…eg0ire)

This PR was merged into the 3.4 branch.

Discussion
----------

[PHPUnitBridge] Add an implementation just for php 7.0

| Q             | A
| ------------- | ---
| Branch?       | 3.4, because the bug only appears on that branch and up
| Bug fix?      | yes
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | none
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

php 7 does not have the void return type, which means we have to have a specific class for the php 7.0 + phpunit 6 combination.

Commits
-------

fc69307 Add an implementation just for php 7.0
@greg0ire greg0ire deleted the php7.0_specific_phpunit_th branch April 30, 2018 05:37
This was referenced Apr 30, 2018
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.

4 participants