PHPackages                             maxsky/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. maxsky/think-testing

ActiveLibrary

maxsky/think-testing
====================

v3.0.2(3y ago)016Apache-2.0PHPPHP ^7.1

Since Jul 29Pushed 3y agoCompare

[ Source](https://github.com/maxsky/think-testing)[ Packagist](https://packagist.org/packages/maxsky/think-testing)[ RSS](/packages/maxsky-think-testing/feed)WikiDiscussions 3.0 Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (17)Used By (0)

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

[](#think-testing)

ThinkPHP 5.1 应用单元测试组件

安装
--

[](#安装)

**`PHP >= 7.1`**

```
composer require maxsky/think-testing --dev
```

配置
--

[](#配置)

复制 `example` 文件夹内所有内容至项目根目录，修改项目 `composer.json`

`autoload` 中修改为如下

```
"autoload": {
    "psr-4": {
        "app\\": "application",
        "think\\": "thinkphp/library/think"
    }
}
```

然后新增 `autoload-dev` 如下

```
"autoload-dev": {
    "psr-4": {
        "tests\\": "tests"
    }
}
```

最后执行

```
composer dumpautoload
```

使用
--

[](#使用)

项目目录下运行命令：

```
php think unit
```

其它
--

[](#其它)

**需注意，一定要在测试环境下确认无误才进行线上部署**

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 53.3% 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 ~150 days

Recently: every ~358 days

Total

16

Last Release

1328d ago

Major Versions

v1.0.6 → v2.02017-10-16

v2.0.5 → v3.0.22022-09-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f8f4aa99ca479f6fb6b162b4b56ce4e8e8e96518c828949a69b2db37ae4ecb0?d=identicon)[maxsky](/maintainers/maxsky)

---

Top Contributors

[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (16 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (10 commits)")[![maxsky](https://avatars.githubusercontent.com/u/7405522?v=4)](https://github.com/maxsky "maxsky (4 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/browser-kit-testing

Provides backwards compatibility for BrowserKit testing in the latest Laravel release.

5139.4M286](/packages/laravel-browser-kit-testing)[drupal/core-dev

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

2021.0M277](/packages/drupal-core-dev)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[juampi92/test-seo

Easy way to test your SEO

26341.0k](/packages/juampi92-test-seo)[topthink/think-testing

4392.2k8](/packages/topthink-think-testing)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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