krcqa Posted July 11, 2013 Share Posted July 11, 2013 I have installed selenium server standalone 2.30.0, wamp server 2.0i, php 5.3.0, phpunit 3.6.12While i try to execute a Example php file from the PHP Unit, i get the error as "Fatal Error: Call to undefined function curl_init() in C:\wamp\bin\php\php5.3.0\PEAR\PHPUnit\Extensions\SeleniumTestCase\Driver.php on line 987"I had checked the php.ini and ensure that removing ';' semicolon in extension=php_curl.dllrestart the wamp server, ensured the libeay32.dll and ssleay32.dll files are in System32Please suggest me regarding this issue....The code below is Example.php<?phpinclude_once("PEAR/PHPUnit/Extensions/SeleniumTestCase/Driver.php");include_once("PEAR/PHPUnit/Extensions/SeleniumTestCase.php");class Example extends PHPUnit_Extensions_SeleniumTestCase{ protected $captureScreenshotOnFailure = True; protected $screenshotPath = '/var/www/localhost/htdocs/screenshots'; protected $screenshotUrl = 'http://localhost/screenshots';protected function setUp(){$this->setBrowser("*firefox");$this->setBrowserUrl("http://www.google.co.in");}public function testTitle() { $this->open('http://www.google.co.in'); $this->assertTitle('Google WWW Page'); }}?> Link to comment Share on other sites More sharing options...
Larry Posted July 12, 2013 Share Posted July 12, 2013 Did you run a phpinfo() script to confirm that it shows support for cURL enabled? Link to comment Share on other sites More sharing options...
Recommended Posts