sahi和symfony2

时间:2012-06-27 08:59:42

标签: symfony behat sahi mink

我想用symfony2测试behat,mink和sahi

所以,在我的config_test.yml中我有

   mink:
   base_url:  http://localhost/Symfony_Standard_2.0.15_2/symfony/web/app_test.php    
   default_session: symfony
   sahi: ~

和test.feature

    @mink:sahi
    Scenario: Open page with products list and check it
    Given I am on "/hello"
    Then the response should contain "hello"

当我执行时我有这个

PHP致命错误:在C:\ wamp \中调用未定义的函数Buzz \ Client \ curl_init() WWW \ Symfony_Standard_2.0.15_2 \的Symfony \供应商\嗡嗡声\ LIB \巴兹\客户端\ AbstractCurl.p 第26行hp

请帮助我,

1 个答案:

答案 0 :(得分:1)

您的WAMP安装似乎没有启用cURL。 实际上,WAMP默认情况下不启用cURL。启用它的步骤如下:

  1. 关闭WAMP(如果正在运行)
  2. 导航到WAMP \ bin \ php(您的php版本)\
  3. 编辑php.ini
  4. 搜索curl,取消注释extension = php_curl.dll
  5. 导航到WAMP \ bin \ Apache(您的apache版本)\ bin \
  6. 编辑php.ini
  7. 搜索curl,取消注释extension = php_curl.dll
  8. 保存两者
  9. 重启WAMP