Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
krcqa

Undefined Call Function Curl_Init() In Php Unit

Recommended Posts

I have installed selenium server standalone 2.30.0, wamp server 2.0i, php 5.3.0, phpunit 3.6.12

While 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.dll
restart the wamp server, ensured the libeay32.dll and ssleay32.dll files are in System32

Please suggest me regarding this issue....

The code below is Example.php

<?php
include_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');
    }

}
?>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...