Installing PHPUnit

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
fedcba
Forum Newbie
Posts: 1
Joined: Sat Sep 03, 2011 8:41 am

Installing PHPUnit

Post by fedcba »

Hi, this is my developing environment set-up:

WinXP Pro SP3
PHP 5.3.8 (threadsafe)
Apache 2.2 (HTTP server)

For convenience I've put the php folder under the general apache folder
"C:\Program Files\Apache Software Foundation\php5.3.8"
c:/windows/php.ini has been changed accordingly

A test page with info() works fine
I've downloaded and placed pyrus.phar inside the php folder.
-------------------------------------------------------------------------------------

Now I wish to install PHPUnit (from phpunit.de).
According to the install docs of phpunit.de, I should use pear. In 5.3.8 pear got replaced by Pyrus (I guess, cause i don't see any go-pear.bat file).

--------------------------------------------------------------------------------------
WHAT I TRIED:

In command prompt inside the php-map I tried following command:
php pyrus.phar install phpunit/PHPUnit

This fails at a certain point because of a download failure at components.ez.no/ConsoleTools.
the files can be accessed from components.ez.no/get/ however. But I keep failing on manually installing them, in hope that the phpunit install will skip consoletools as it's allready installed.

I keep getting transaction conflicts, after a 2nd package install

the code from my .config file

Code: Select all

<pearconfig version="1.0"><ext_dir>C:\PROGRA~1\APACHE~1\php5.3.8\ext</ext_dir><cfg_dir>packages\cfg</cfg_dir><doc_dir>packages\docs</doc_dir><bin_dir>C:\PROGRA~1\APACHE~1\php5.3.8</bin_dir><www_dir>packages\www</www_dir><test_dir>packages\tests</test_dir><src_dir>packages\src</src_dir><php_bin>C:\PROGRA~1\APACHE~1\php5.3.8</php_bin><php_ini>C:\WINDOWS\php.ini</php_ini><php_prefix></php_prefix><php_suffix></php_suffix></pearconfig>
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Installing PHPUnit

Post by VladSun »

Try

Code: Select all

     $ pear upgrade PEAR
     $ pear channel-discover pear.phpunit.de
     $ pear channel-discover components.ez.no
     $ pear channel-discover pear.symfony-project.com
     $ pear install phpunit/PHPUnit
     $ phpunit
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply