Install PHPUnit in Windows, Wamp using PEAR

Go to the directory where PHP is located. Typically, this is <PATH-TO-YOUR-WAMP-INSTALLATION>\bin\php\php5.3.8

We’ll call this path “PHP’s location” throughout this article.

Now, install PEAR following instructions in this tutorial.

Open a command-prompt, go to PHP’s location using cd, and type:

pear channel-discover components.ez.no
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
pear install --alldeps phpunit/PHPUnit

We’re done! type phpunit –version to confirm installation.

Reference:

http://www.ankara-gtug.org/2011/11/15/phpunit-installation-on-wamp-in-windows-7-and-integration-with-eclipse-2/

Installing PEAR in Windows, Wamp

Go to the directory where PHP is located. Typically, this is <PATH-TO-YOUR-WAMP-INSTALLATION>\bin\php\php5.3.8

We’ll call this path “PHP’s location” throughout this article.

  1. Download “go-pear.phar” from this location: pear.php.net/go-pear.phar
  2. Create a folder “pear” in your PHP’s location
  3. Put the downloaded “go-pear.phar” file in this location.

Open a command prompt with administrative privilege. For this, click on start menu, type “cmd” – you can see the cmd.exe icon. Right-click on this icon and click “Run as administrator”

Cmd.exe will open. Go to the direcotry of your PHP’s location, by typing “cd” command. For example, my wamp is located in “D:\wamp”, so I write following command:

D:
cd wamp\bin\php\php5.3.8

Now run the downloaded file, by typing:

php .\pear\go-pear.phar

 

Installation will begin! During installation, you’ll need to respond to some prompts, just hit enter/press “Y” when necessary.

After installing, double-click and instal “PEAR_ENV.reg” found in your PHP’s location.

Optionally, you can add your PHP’s location in your PATH variable.

Source code of Android Tutorials from The New Boston

🙂

Get sources of tutorials of individual videos

I’m  just learning android from the awesome tutorials made by Travis (available for FREE at here) and decided to code them in hand. Just pushing them to this repo if anyone needs them.

One interesting point, I’ll make a commit after every tutorial! So you can browse the snapsot of each tutorial by selecting a commit from my Github

Cool, huh? (The initial commit begins with Tutorial 10, though).