Installing PHPUnit
Posted: Sat Sep 03, 2011 9:16 am
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
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>