-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Phar distrib cannot be used with phing PHPUnitTask #1924
Comments
Are you telling me that Phing is not invoking PHPUnit in a separate process but inside its own? |
I'm telling you that Phing through the PHPUnitTask invoke PHPUnit resources as it was only a phar archive with only libs to call when needed. |
If Phing does not invoke PHPUnit in a separate process then Phing is doing something stupid. Sorry for using such a harsh word. |
Why not just thinking to use |
This could be as simple as I created #1925 to track the development of a library-only PHAR distribution of PHPUnit. If you, or the Phing developers, tell me that such a library-only PHAR that uses |
Thanks :) |
Can you check whether 3dffc9f works for you? |
Sorry Sebastian, but I can't do it now (at work). And to be honest with you, I've rebuild your phar 5.0.6 distrib from an "horrible" method ( extract phar, add new stub with require_once, and sheband ) and then rebuild project with box.json config from https://github.com/box-project/box2 |
Just clone PHPUnit's repository from GitHub and then |
Discussion moved to #1925. |
Out of pure curiosity: Why would anyone still need require_once when there is autoloading? |
Sebastian,
Consider the phing PHPUnitTask used with the phar distrib of PHPUnit (I've tested myself with phing 2.12 and phpunit 5.0.6). I've opened a ticket 1222 on Phing.
The conflict origin issue came from the phar-stub you used and only
require
instead ofrequire_one
E.g: rather than
replace it by
Thanks in advance to consider this change.
BTW, could you also consider to publish a phar distrib without the shebang (
#!/usr/bin/env php
)Laurent
The text was updated successfully, but these errors were encountered: