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

[Bridge/PhpUnit] Extract all the code but shebang from bin/simple-phpunit #31364

Merged
merged 1 commit into from May 6, 2019

Conversation

JustBlackBird
Copy link
Contributor

@JustBlackBird JustBlackBird commented May 2, 2019

The change allow simple-phpunit to be included without #!/usr/bin/env php string outputted.

Also it's the first step to fix #27035 (the second one is to change phpunit bridge recipe).

The reason why I fix a closed issue is because PHPStorm don't want to parse output from simple-phpunit with extra shebang.

phpstorm-phpunit

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #27035
License MIT

@JustBlackBird
Copy link
Contributor Author

Not sure if I should fix code style... The code is still the same but moved to another file.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

Thanks, no need to care about the CS I agree.
This should be submitted on master - it's not a real bug fix. We can merge it for 4.3 IMHO.
Pleas also open a PR for the recipe so we can discuss it at the same time.

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit Show resolved Hide resolved
src/Symfony/Bridge/PhpUnit/bin/simple-phpunit Outdated Show resolved Hide resolved
@JustBlackBird
Copy link
Contributor Author

JustBlackBird commented May 5, 2019

@nicolas-grekas I've changed target to master branch and open a PR for flex recipes repo: symfony/recipes#584

…unit

The change allow `simple-phpunit` to be included without
`#!/usr/bin/env php` string outputted.

Also it's the first step to fix symfony#27035 (the second one is to change
phpunit bridge recipe).
JustBlackBird added a commit to JustBlackBird/recipes that referenced this pull request May 5, 2019
nicolas-grekas pushed a commit to JustBlackBird/recipes that referenced this pull request May 5, 2019
@fabpot
Copy link
Member

fabpot commented May 6, 2019

Thank you @JustBlackBird.

@fabpot fabpot merged commit 74a0be3 into symfony:master May 6, 2019
fabpot added a commit that referenced this pull request May 6, 2019
… bin/simple-phpunit (JustBlackBird)

This PR was merged into the 4.3-dev branch.

Discussion
----------

[Bridge/PhpUnit] Extract all the code but shebang from bin/simple-phpunit

The change allow `simple-phpunit` to be included without `#!/usr/bin/env php` string outputted.

Also it's the first step to fix #27035 (the second one is to change phpunit bridge recipe).

The reason why I fix a closed issue is because PHPStorm don't want to parse output from simple-phpunit with extra shebang.

![phpstorm-phpunit](https://user-images.githubusercontent.com/1167086/57097433-6c9b2a00-6d20-11e9-9979-0c2c6d24147d.png)

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27035
| License       | MIT

Commits
-------

74a0be3 [Bridge/PhpUnit] Extract all the code but shebang from bin/simple-phpunit
@JustBlackBird
Copy link
Contributor Author

You're welcome @fabpot !

@fabpot fabpot mentioned this pull request May 9, 2019
nicolas-grekas added a commit that referenced this pull request Jun 22, 2021
…hen using simple-phpunit (Taluu)

This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] fix handling the COMPOSER_BINARY env var when using simple-phpunit

| Q             | A
| ------------- | ---
| Branch?       | 4.4 and next
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41774
| License       | MIT

Since the renaming of the simple phpunit file (from the shebang to the php file) in #31364, it looks like the change made from #36566 was lost as it seems to have been merged after.

So this PR is an attempt to "restore" that functionnality, as it was considered a bug fix on 3.4 at the time.

poke `@nicolas`-grekas

Commits
-------

9589b52 Reapply the change to allow to set the composer binary path
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.

[PhpUnitBridge] Shebang is printed in the output while using bin/phpunit
5 participants