Installing PHPUnit with Zend Server CE for Windows

Open this with a web browser and save it to somewhere under your web root as a *.php file:

Execute it using the PHP CLI:

php go-pear.php

Follow the installation instructions, making sure you change paths to point to C:\Program Files\Zend\Zend Server\ bearing in mind that the PHP executable by default lives at C:\Program Files\Zend\Zend Server\bin\php.exe (and the installer will expect to find php.ini at C:\Program Files\Zend\Zend Server\etc\php.ini)

If PEAR doesn’t run via pear at the command line, even after you run the registry settings update which should add the path as an environment variable, the change directory to C:\Program Files\Zend\Zend Server\

Following the PHPUnit installation instructions via

Registering the channel:

pear channel-discover

Listing available packages:

pear remote-list -c phpunit

Installing a package:

pear install phpunit/package_name

1 comment