PHPackages                             foxiswho/think-testing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. foxiswho/think-testing

ActiveThink-testing[Testing &amp; Quality](/categories/testing)

foxiswho/think-testing
======================

v2.0.10(7y ago)05Apache-2.0PHP

Since Jul 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/foxiswho/think-testing)[ Packagist](https://packagist.org/packages/foxiswho/think-testing)[ RSS](/packages/foxiswho-think-testing/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (18)Used By (0)

think-testing
=============

[](#think-testing)

ThinkPHP 5 应用单元测试组件

修改自 firma/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
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 55.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Recently: every ~0 days

Total

17

Last Release

2812d ago

Major Versions

v1.0.6 → 2.0.x-dev2018-01-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb13558595ae35c0a2f7203068cd215b1c7fc0259f9f0065705722cddcfab0fa?d=identicon)[foxiswho](/maintainers/foxiswho)

---

Top Contributors

[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (16 commits)")[![foxiswho](https://avatars.githubusercontent.com/u/11833108?v=4)](https://github.com/foxiswho "foxiswho (11 commits)")[![firma](https://avatars.githubusercontent.com/u/2088807?v=4)](https://github.com/firma "firma (1 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (1 commits)")

### Embed Badge

![Health badge](/badges/foxiswho-think-testing/health.svg)

```
[![Health](https://phpackages.com/badges/foxiswho-think-testing/health.svg)](https://phpackages.com/packages/foxiswho-think-testing)
```

###  Alternatives

[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2021.0M276](/packages/drupal-core-dev)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[topthink/think-testing

4392.2k8](/packages/topthink-think-testing)[juampi92/test-seo

Easy way to test your SEO

26341.0k](/packages/juampi92-test-seo)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

31252.7k5](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
