sahi and symfony2

你。 提交于 2019-12-31 06:25:27

问题


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 :

  1. Close WAMP (if running)
  2. Navigate to WAMP\bin\php(your version of php)\
  3. edit php.ini
  4. Search for curl, uncomment extension=php_curl.dll
  5. Navigate to WAMP\bin\Apache(your version of apache)\bin\
  6. edit php.ini
  7. Search for curl, uncomment extension=php_curl.dll
  8. Save both
  9. Restart WAMP


来源:https://stackoverflow.com/questions/11222722/sahi-and-symfony2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!