foxiswho / think-testing
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 45
Type:think-testing
Requires
- phpunit/phpunit: 7.*
- symfony/dom-crawler: 4.*
- topthink/framework: 5.1.*
- topthink/think-helper: ~1.0
- topthink/think-installer: ^2.0
README
ThinkPHP 5 应用单元测试组件
修改自 firma/think-testing
官方不更新单元测试,一直无法使用,这里直接 自己改了它。
https://packagist.org/packages/foxiswho/think-testing
只支持 php 7.1.x,php 7.2.x,php 7.3.x
注意:这里 只支持 ThinkPHP5.1.22
以上版本
步骤
先执行
composer require foxiswho/think-testing
等待拉取报如下错误
[InvalidArgumentException]
Unable to install this library!
修改以下路径文件
vendor/topthink/think-installer/src/ThinkTesting.php
找到26
行,修改为如下,并保存
//if ('topthink/think-testing' !== $package->getPrettyName()) { // throw new \InvalidArgumentException('Unable to install this library!'); // }
最后调用
composer require foxiswho/think-testing