问题
i would like to test behat, mink and sahi with symfony2
so, in my config_test.yml i have
mink:
base_url: http://localhost/Symfony_Standard_2.0.15_2/symfony/web/app_test.php
default_session: symfony
sahi: ~
and in test.feature
@mink:sahi
Scenario: Open page with products list and check it
Given I am on "/hello"
Then the response should contain "hello"
when i execute i have this
PHP Fatal error: Call to undefined function Buzz\Client\curl_init() in C:\wamp\ www\Symfony_Standard_2.0.15_2\Symfony\vendor\buzz\lib\Buzz\Client\AbstractCurl.p hp on line 26
help me please,
回答1:
It seems that you do not have cURL enabled in your WAMP installation. Actually cURL is not enabled by default in WAMP. The steps to enable it are as follows :
- Close WAMP (if running)
- Navigate to WAMP\bin\php(your version of php)\
- edit php.ini
- Search for curl, uncomment extension=php_curl.dll
- Navigate to WAMP\bin\Apache(your version of apache)\bin\
- edit php.ini
- Search for curl, uncomment extension=php_curl.dll
- Save both
- Restart WAMP
来源:https://stackoverflow.com/questions/11222722/sahi-and-symfony2