T
T
theEternalStudent2016-03-07 21:28:53
PHP
theEternalStudent, 2016-03-07 21:28:53

Can't install phpunit on openserver... what am I doing wrong?

I've been trying to install phpunit for an hour, but when I execute pear channel-discover pear.phpunit.de it says: "Discovering channel pear.phpunit.de over http:// failed with message: channel-add: Cannot open " pear.phpunit.de /channel.xml " (File http://pear.phpunit.de:80/channel.xml not valid (received: HTTP/1.1 410 Gone
))
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 " (File https://pear.phpunit.de:443/channel.xml not valid (received: HTTP/1.1 410 Gone"
)))"
What's wrong?
Tried following the instructions:
Run the following commands:
pear channel-update pear.php.net
pear upgrade-all
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear update- channels
Clear your pear cache pear clear-cache
To install PHPUnit, run pear install --alldeps --force phpunit/PHPUnit
To test that PHPUnit was successfully installed, run phpunit -v

Answer the question

In order to leave comments, you need to log in

5 answer(s)
T
theEternalStudent, 2016-03-09
@theEternalStudent

Decision. Run "vendor\bin\phpunit"

O
OnYourLips, 2016-03-07
@OnYourLips

phpunit left pear back in 2014, it is now installed from composer as a project dependency.

J
jaxel, 2016-03-07
@jaxel

Why such difficulties? Put phpunit.phar in your project directory and run tests viaphp phpunit.phar команда

A
Alexander, 2016-03-08
@alesd

The openserver composer is already installed. Read the openserver documentation. I think the necessary dependencies are already there

V
Vitaliy Nastich, 2016-08-30
@cheslaav

Answer here
For the lazy:
# Go to the project folder
cd C:\openserver\domains\localhost
# Install Symfony
composer create-project symfony/framework-standard-edition symfony
# Install PHPUnit
composer create-project phpunit/phpunit phpunit & echo @php -d output_buffering=0 phpunit\phpunit.php %*>phpunit.bat
# Install Laravel
composer create-project laravel/laravel laravel --prefer-dist
# Install phpDocumentor
composer create-project phpdocumentor/phpdocumentor phpdocumentor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question