1

Im trying to install PHPUnit on Xampp using Composer.I have followed the steps from the following link http://woeiyu.com/software/php/installing-phpunit/ but im got the error "proc_open(NUL): failed to open stream: No such file or directory" while executing composer update

2 Answers 2

1

I suggest you skip XAMPP and use Git. Much easier. But you actually don't need those two to install it.

Put this in your composer.json

{
    "require-dev": {
        "phpunit/phpunit": "5.0.*"
    }
}

Run it like this in Git or XAMPP composer update after that composer install and that's it. You successfully downloaded and installed PHPUnit. It's located in your root vendor/

Sign up to request clarification or add additional context in comments.

Comments

1

You can install phpunit with composer globally using

$ composer global require phpunit/phpunit

For reference see https://getcomposer.org/doc/03-cli.md#global.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.