Install PHPUnit (Wndws & Yii Framework)

  1. Open a command prompt and go to C:xamppphp
  2. Type “pear update-channels” (updates channel definitions)
  3. Type “pear upgrade” (upgrades all existing packages and pear)
  4. Type “pear channel-discover components.ez.no” (this is needed for PHPUnit)
  5. Type “pear channel-discover pear.symfony-project.com” (also needed by PHPUnit)
  6. Type “pear channel-discover pear.phpunit.de” (This IS phpunit)
  7. Type “pear install —alldeps phpunit/PHPUnit” (installs PHPUnit and all dependencies)

Install java jdk, then copy path x:Program Filesjavajdkxxbin to environment variable (path)

Copy path x:xamppphp to environment variable too.. 

Open command prompt.. then type ‘java -jar seleniumxxxx.jar’

Create ‘SiteTest.php’

Open Command prompt and type “phpunit functionalSiteTest.php”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s