I'm using WampServer 2.1 (with PHP 5.3.4) on Windows 7 64-bit.
This guide was made with the help of Itay Adler.
c:
cd c:\temp\pear
php go-pear.phar
Open a new command prompt as an administrator:
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
<?php
class MyTest extends PHPUnit_Framework_TestCase
{
public function testOneEqualsOne()
{
$this->assertEquals(1, 1);
}
}
?>
phpunit MyTest.php
You should see the following output:
PHPUnit 3.5.15 by Sebastian Bergmann.
.
Time: 0 seconds, Memory: 5.25Mb
OK (1 test, 1 assertion)