PHPackages                             hackingangle/tests\_by\_phpunit - 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. hackingangle/tests\_by\_phpunit

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

hackingangle/tests\_by\_phpunit
===============================

tests by phpunit

v1.0.0(8y ago)0273[1 PRs](https://github.com/hackingangle/tests_by_phpunit/pulls)MITPHP

Since Feb 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hackingangle/tests_by_phpunit)[ Packagist](https://packagist.org/packages/hackingangle/tests_by_phpunit)[ RSS](/packages/hackingangle-tests-by-phpunit/feed)WikiDiscussions master Synced 2w ago

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

TestCase
========

[](#testcase)

依赖COMPOSER
----------

[](#依赖composer)

[![composer](https://camo.githubusercontent.com/8e630da6986221cb7698790fa29221594b76120071eea4d6e70621f204b42b49/68747470733a2f2f676574636f6d706f7365722e6f72672f696d672f6c6f676f2d636f6d706f7365722d7472616e73706172656e74352e706e67)](https://camo.githubusercontent.com/8e630da6986221cb7698790fa29221594b76120071eea4d6e70621f204b42b49/68747470733a2f2f676574636f6d706f7365722e6f72672f696d672f6c6f676f2d636f6d706f7365722d7472616e73706172656e74352e706e67)

- website
    -
- china mirror
    -

开始使用
----

[](#开始使用)

```
composer create-project hackingangle/tests_by_phpunit
```

PS: 如果网速慢，请执行"composer config -g repo.packagist composer "

TDD = Test Driven Dev
---------------------

[](#tdd--test-driven-dev)

- 思维方式转变
    - 先构造case

phpunit
-------

[](#phpunit)

### test case

[](#test-case)

### assert

[](#assert)

### depends

[](#depends)

### dataProvider

[](#dataprovider)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3069d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2120692?v=4)[hackingangle](/maintainers/hackingangle)[@hackingangle](https://github.com/hackingangle)

---

Top Contributors

[![hackingangle](https://avatars.githubusercontent.com/u/2120692?v=4)](https://github.com/hackingangle "hackingangle (14 commits)")

### Embed Badge

![Health badge](/badges/hackingangle-tests-by-phpunit/health.svg)

```
[![Health](https://phpackages.com/badges/hackingangle-tests-by-phpunit/health.svg)](https://phpackages.com/packages/hackingangle-tests-by-phpunit)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k129.9M920](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k41.3M39.1k](/packages/orchestra-testbench)[drupal/core-dev

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

2022.0M322](/packages/drupal-core-dev)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

30300.1k7](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

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