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

composer.json should require phpunit/phpunit ~3.7 #51

Closed
kwisatz opened this issue Mar 14, 2014 · 6 comments · Fixed by #56
Closed

composer.json should require phpunit/phpunit ~3.7 #51

kwisatz opened this issue Mar 14, 2014 · 6 comments · Fixed by #56

Comments

@kwisatz
Copy link

kwisatz commented Mar 14, 2014

In WebApiContext.php, you're requiring PHPUnit/Autoload.php. However, since version 4.0 of phpunit, it is no longer bringing its own Autoloader but using composer as well.

Please add a require dependency on ~3.7 or alternatively please release a new tag of behat/common-contexts that can deal with phpunit 4.0

@afterdesign
Copy link

👍

2 similar comments
@kimu
Copy link

kimu commented Mar 25, 2014

👍

@widmogrod
Copy link

+1

widmogrod pushed a commit to widmogrod/CommonContexts that referenced this issue Apr 24, 2014
@localheinz
Copy link
Contributor

👍

@localheinz
Copy link
Contributor

Anyone interested in 👍ing #56?

@stof stof closed this as completed in #56 May 7, 2014
@MacDada
Copy link

MacDada commented Oct 29, 2015

Hi, I've upgraded phpunit ~3.7 to ~3.8 and behat freaked out:

PHP Warning: require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /vagrant/vendor/behat/common-contexts/Behat/CommonContexts/WebApiContext.php on line 11

In composer I requrie "any" version "behat/common-contexts": "*", but I also "prefer-stable": true, which in the end gives me version v.1.2.0.

I see that the fix is merged to master now, but why is there no release yet, for more than a year?


For now it works to use "behat/common-contexts": "dev-master",

@MacDada MacDada mentioned this issue Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants