-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Recommend to install PHPUnit from the .phar archive (without Composer)? #6625
Comments
This fix adds a recommendation of installing PHPUnit as a PHAR archive, as suggested in symfony#6625.
I tend to disagree. If phpunit is not a dependency, then you don't have Furthermore, the IDE's won't be able to autocomplete the methods provided by PHPUnit. |
@JEDIBC But you can't install PHPUnit with Composer and Symfony 3.1. Extending the class and autocomplete won't be available because the requirements will be broken. |
I know you can't but it is a temporary situation. Documenting that phpunit shouldn't be installed as dev dependency is an error for me. |
@JEDIBC : Please note that this issue is an open question. I was looking for a way to avoid users frustrated by broken dependencies, recommending the usage of the The #6628 PR may be rewritten as something like Due to a bug in […], PHPUnit can't be installed with Composer. Until the bug is fixed, PHPUnit can be installed through the |
It looks like the root problem has been fixed: phpspec/prophecy#275 |
The problem has been fixed, it's now possible to install Symfony 3.1 and PHPUnit 5.4:
(use this command only during tests, PHPUnit should go in the |
$ composer require --dev phpunit/phpunit Worked fine for me thx @alexislefebvre |
According to @wouterj:
Source: symfony/symfony#18903 (comment)
But the documentation doesn't recommend to install PHPUnit without Composer: http://symfony.com/doc/current/book/testing.html
Should the documentation mention that using
phpunit.phar
is the recommended way to use PHPUnit?The text was updated successfully, but these errors were encountered: