Created
December 22, 2011 08:56
-
-
Save everzet/1509593 to your computer and use it in GitHub Desktop.
Install & use Behat+Mink with ALL dependencies through Composer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"behat/behat": ">=2.2.2", | |
"behat/mink": ">=1.3.2" | |
}, | |
"repositories": { | |
"behat/mink-deps": { "composer": { "url": "behat.org" } } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget -nc http://getcomposer.org/composer.phar | |
php composer.phar install | |
# after that, just run behat with: | |
# vendor/bin/behat | |
# | |
# this vendor/bin/behat already knows where to find MinkContext | |
# and all it's dependencies automagically ;-) |
@Seldaek yeah, i know. But i want to impress people with composer.json
shortness ;-)
Obtained error:
[UnexpectedValueException]
Repository behat/mink-deps ({"composer":{"url":"behat.org"}}) must have a type defined
I had to change the repositories as so:
"repositories": {
"behat/mink-deps": {
"type": "composer",
"url": "behat.org" }
},
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍