PHPackages                             rsj/unit-test - 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. rsj/unit-test

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

rsj/unit-test
=============

test unit

02PHP

Since Jan 4Pushed 5y agoCompare

[ Source](https://github.com/rsj904989464/UnitTest)[ Packagist](https://packagist.org/packages/rsj/unit-test)[ RSS](/packages/rsj-unit-test/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

> unit-test

方便与laravel框架中对于某一个类的方法调试；类似于单元测试

> 框架要求

Laravel &gt;= 5.1

> 安装

composer require "rsj/unit-test"

> Laravel 配置

在 `config/app.php` 注册 ServiceProvider

'providers' =&gt; \[ Rsj\\UnitTest\\Providers\\UnitServiceProvider::class, \]

> 浏览器中直接访问路由

Route::get('/', 'SJunitController@index'); Route::post('/', 'SJunitController@store')-&gt;name('junit.store');

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![rsj904989464](https://avatars.githubusercontent.com/u/20450817?v=4)](https://github.com/rsj904989464 "rsj904989464 (2 commits)")

### Embed Badge

![Health badge](/badges/rsj-unit-test/health.svg)

```
[![Health](https://phpackages.com/badges/rsj-unit-test/health.svg)](https://phpackages.com/packages/rsj-unit-test)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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