PHPackages                             grithin/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. grithin/phpunit

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

grithin/phpunit
===============

PHPUnit tools

0.1(4y ago)062MITPHPPHP &gt;=7.2

Since Jul 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/grithin/phpunit)[ Packagist](https://packagist.org/packages/grithin/phpunit)[ Docs](https://github.com/grithin/phpunit)[ RSS](/packages/grithin-phpunit/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (2)

PHPUnit Tools
=============

[](#phpunit-tools)

```
$closure = function(){
	throw new \Exception;
};
$this->assert_exception($closure); # pass with 1 assertion
$this->assert_no_exception($closure); # fail
```

`assert_method_result`

```
class Test extends TestCase{
	use Grithin\Phpunit\TestTrait;
	$this->assert_equal_standard($expect, $input, 'merge_deep', 'test straigt list merge');
	function __construct(){
		parent::__construct();

		$this->class = \Grithin\Arrays::class; # set this to use `assert_method_result`
	}
	function test(){
		$x = ['bill'=>['moe'=>'bob']]
		$this->assert_method_result('bob', 'bill.moe', 'get', 'Array::get failed');
	}
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1762d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4543facab3c88d548b98d8472b532faf7bcd00555cc47c0dc808d935f8d3d73f?d=identicon)[grithin](/maintainers/grithin)

---

Top Contributors

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

---

Tags

phpunit

### Embed Badge

![Health badge](/badges/grithin-phpunit/health.svg)

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

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[johnkary/phpunit-speedtrap

Find and report on slow tests in your PHPUnit test suite

78137.2M122](/packages/johnkary-phpunit-speedtrap)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)[dg/bypass-finals

Removes final keyword from source code on-the-fly and allows mocking of final methods and classes

56426.3M456](/packages/dg-bypass-finals)[phpspec/prophecy-phpunit

Integrating the Prophecy mocking library in PHPUnit test cases

19254.9M1.4k](/packages/phpspec-prophecy-phpunit)

PHPackages © 2026

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