I just went to install the phpunit/phpunit via composer and noticed there are two packages that seem to be named phpunit/phpunit:
$ composer search "phpunit/phpunit" Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2 phpunit/phpunit The PHP Unit Testing framework. phpunit/phpunit The PHP Unit Testing framework. phpunit/phpunit-mock-objects Mock Object library for PHPUnit phpunit/phpunit-selenium Selenium Server integration for PHPUnit phpunit/phpunit-story Story extension for PHPUnit to facilitate Behaviour-Driven Development. phpunit/phpunit-skeleton-generator Tool that can generate skeleton test classes from production code classes and vice versa phpunit/phpunit-dom-assertions DOM assertions for PHPUnit phpunit/phpunit-mink-trait Trait that provides minimal integration layer for using Mink in PHPUnit test cases irstea/phpunit-shim Shim repository for phpunit/phpunit ergebnis/phpunit-slow-test-detector Provides facilities for detecting slow tests in phpunit/phpunit. localheinz/phpunit-framework-constraint Provides additional constraints and assertions for phpunit/phpunit ergebnis/phpunit-framework-constraint Provides additional constraints and assertions for phpunit/phpunit phpunit/phpunit-tideways-listener TestListener for PHPUnit that can dump profile information phpunit/phpunit-memprof-listener TestListener for PHPUnit that can dump memory profile information slam/phpunit-extensions Slam extensions for phpunit/phpunit Searching the packagist repository shows one is a virtual package:
I don't want the virtual package. It kinda even looks a little bit dodgy as it seems to be pulling in phpunit (which has thousands of stars) plus another package I don't want with zero stars.
So my question is two fold:
- What's going on here and is it an issue / bug?
- How do I ensure composer pulls the non virtual proper phpunit/phpunit package?

没有评论:
发表评论