foxiswho/think-testing

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 45

Type:think-testing

v2.0.10 2018-08-28 09:21 UTC

This package is auto-updated.

Last update: 2024-10-11 19:43:35 UTC


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