这是为那些坚持PHP5.2的人准备的,他们不需要梨,只需要作曲家。
另一个更好的解决方案是受欢迎的。
但更合适的解决方案是在packagist上添加这些版本。即使有一些像x.y.z-backward这样的标签。我只是为它祈祷。
转到https://github.com/garex/phpunit并安装此程序包。
添加到您的作曲家:
"require-dev": {
"phpunit/phpunit-php52": "dev-3.6.12-php52",
"phpunit/phpunit-mock-objects-php52": "dev-1.1.0-php52"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/garex/phpunit"
},
{
"type": "git",
"url": "https://github.com/garex/phpunit-mock-objects"
}
]
分支3.6.12-php52和1.1.0-php52是github-reos的默认分支,因此它们将快速安装。