Skip to content

[PhpUnitBridge] run PHPUnit in the same process #21112

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
Jan 2, 2017

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Dec 31, 2016

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

@xabbuh
Copy link
Member Author

xabbuh commented Dec 31, 2016

@julienfalque Can you check if this change solves the issue you described in #21083 (comment) too?

@nicolas-grekas
Copy link
Member

This currently breaks the handling of the exit code (see var $exit). Otherwise I think that's a good way to go. Maybe see if we can do something with OK/KO in a shutdown function ? Or deal with it in .travis.yml file as it was done before.

@xabbuh xabbuh force-pushed the phpunit-bridge-no-sub-process branch from 9c678fe to 02ef903 Compare December 31, 2016 13:16
@xabbuh
Copy link
Member Author

xabbuh commented Dec 31, 2016

Unfortunately, we cannot detect the exit code inside a shutdown function. So we will need to update our Travis CI config after this has been merged.

readfile($errFile);
unlink($errFile);
}
include "$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit";

if (!file_exists($component = array_pop($argv))) {
Copy link
Member

Choose a reason for hiding this comment

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

Can be removed

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, good catch

@xabbuh xabbuh force-pushed the phpunit-bridge-no-sub-process branch from 02ef903 to 1986278 Compare December 31, 2016 13:42
@xabbuh xabbuh added this to the 3.x milestone Dec 31, 2016
@julienfalque
Copy link
Contributor

@xabbuh I confirm this solves my issue too :)

@xabbuh
Copy link
Member Author

xabbuh commented Jan 2, 2017

@julienfalque Thanks! Happy new year to you! 🎉

@julienfalque
Copy link
Contributor

Happy new year :) 🎉

@nicolas-grekas
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented Jan 2, 2017

Thank you @xabbuh.

@fabpot fabpot merged commit 1986278 into symfony:master Jan 2, 2017
fabpot added a commit that referenced this pull request Jan 2, 2017
This PR was merged into the 3.3-dev branch.

Discussion
----------

[PhpUnitBridge] run PHPUnit in the same process

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

Commits
-------

1986278 [PhpUnitBridge] run PHPUnit in the same process
@xabbuh xabbuh deleted the phpunit-bridge-no-sub-process branch January 2, 2017 20:12
@nicolas-grekas nicolas-grekas modified the milestone: 3.x Mar 24, 2017
@fabpot fabpot mentioned this pull request May 1, 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.

5 participants