0
votes

Installing PHPUnit via PEAR the install instructions for phpunit are running this:

pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit

But fails with this error:

Notice: fwrite(): send of 105 bytes failed with errno=10053 An established connection was aborted by the software in your host machine. in PEAR\Downloader.php on line 1664

Notice: fwrite(): send of 105 bytes failed with errno=10053 An established connection was aborted by the software in your host machine. in C:\xampp\php\pear\PEAR\Downloader.php on line 1664

Discovering channel pear.phpunit.de over http:// failed with message:

channel-add: Cannot open "http://pear.phpunit.de/channel.xml" (File http://pear.phpunit.de:80/channel.xml not valid (redirected but no location))

Trying to discover channel pear.phpunit.de over https:// instead

Discovery of channel "pear.phpunit.de" failed (channel-add: Cannot open "https://pear.phpunit.de/channel.xml" (Connection to `pear.phpunit.de:443' failed:

An established connection was aborted by the software in your host machine.))

How do you solve?

2

2 Answers

0
votes
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
mv phpunit.phar /usr/local/bin/phpunit
-1
votes

Did you set the auto discover on? I do the following at it works correctly on Ubuntu Linux and Windows 7.

Ubuntu:

sudo pear upgrade PEAR
sudo pear config-set auto_discover 1
sudo pear install pear.phpunit.de/PHPUnit

Windows:

pear upgrade PEAR
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit