Michael Wilson
Michael Wilson

Reputation: 283

How do I set up PHPUnit locally on a Windows laptop?

I have no software related to PHP on my laptop. I know how to code in PHP and have previously used Subversion through Eclipse which connects to a web server but unfortunately I'm struggling to find anything that tells you how to create a PHP setup on a local machine including PHPUnit so that I can practice test driven development.

Any advice would be appreciated.

Upvotes: 2

Views: 159

Answers (1)

dualed
dualed

Reputation: 10502

The easiest way is probably using XAMPP, as is already installs a PEAR environment.

Install XAMPP first, then to install PHPUnit click the "Shell" button in the XAMPP control panel and enter the following commands:

pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony.com
pear channel-discover components.ez.no

pear install --alldeps phpunit/PHPUnit

Upvotes: 2

Related Questions