2

I am trying to install PHPUnit/Runner/Version.php using PHP composer and I get the following error.

  • The requested package phpunit/phpunit-runner could not be found in any version, there may be a typo in the package name.

I am not sure if I am install the wrong package or what. The following is what I have in my composer.json file.

{
    "require-dev": {
        "phpunit/phpunit": "4.1.*",
        "phpunit/php-invoker": "*",
        "phpunit/dbunit": ">=1.2",
        "phpunit/phpunit-selenium": ">=1.2",
        "phpunit/phpunit-story": "*",
        "phpunit/phpunit-runner": "*" - with this removed that file is unavailable
    }
}

Any help would be great.

3

1 Answer 1

1

The class PHPUnit_Runner_Version is part of the core PHPUnit package phpunit/phpunit in any version.

So there is no need to require it seperately because the package name you invented does not exist.

You probably have a different problem you didn't ask in this question about some software not being able to require this class, but this likely isn't being solved this way.

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

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.