Installing PHPUnit (and Pear package Manager) for Windows #Web Development #By Sayed Ahmed

Pre-requisite:

1. You need to install pear package manager first before installing PHPUnit

I installed PHPUnit as well as Pear using Wamp. It should be the same with vanilla (i.e. plain) PHP

The instructions at: http://nishutayaltech.blogspot.in/2011/04/installing-phpunit-on-windows.html

Worked well for me.

One thing: remember to run command prompt as an administrator

 

—-

Details:

 

First, install pear package

Then install phpunit : http://nishutayaltech.blogspot.in/2011/04/installing-phpunit-on-windows.html

Details

To install PHP pear, one approach,

Go to http://pear.php.net/go-pear.phar, and save this file in your PHP directory (where php.exe or similar exists).

(this file means : go-pear.phar in the following two sections)

# Webbased installation:
# 1) Download this file and save it as go-pear.php
# 2) Put go-pear.php on your webserver, where you would put your website
# 3) Open http://yourdomain.example.org/go-pear.php in your browser
# 4) Follow the instructions, done!
#
# Command-line installation (for advanced users):
# 1) Download this file and save it as go-pear.php
# 2) Open a terminal/command prompt and type: php -q go-pear.php
# 3) Follow the instructions, done!

Reference:

Getting and installing the PEAR package manager

http://pear.php.net/manual/en/installation.getting.php


Seems to be a good resource
http://www.viper007bond.com/2012/08/21/installing-phpunit-on-windows/

Note:
Composer (not PEAR) is the preferred way of installing PHPUnit.
Check details at: http://phpunit.de/manual/current/en/installation.html#installation.composer



  From: http://sitestree.com/?p=1097
Categories:Web Development, By Sayed Ahmed
Tags:
Post Data:2014-06-24 03:12:37

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses:http://Training.SitesTree.com
Blog: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada