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

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

ngyuki/phpunit-functions
========================

PHPUnit Functions.php auto loader

v1.0(8y ago)01.8k↓80.4%3MITPHP

Since Jul 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ngyuki/phpunit-functions)[ Packagist](https://packagist.org/packages/ngyuki/phpunit-functions)[ Docs](https://github.com/ngyuki/phpunit-functions)[ RSS](/packages/ngyuki-phpunit-functions/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (3)

PHPUnit Functions.php auto loader
=================================

[](#phpunit-functionsphp-auto-loader)

[![Build Status](https://camo.githubusercontent.com/ead873ca0c45847604a2fc52f3eb5bdf27f68b1252cb1432a98e1c09e51279eb/68747470733a2f2f7472617669732d63692e6f72672f6e6779756b692f706870756e69742d66756e6374696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ngyuki/phpunit-functions)

PHPUnit contains `Functions.php` for shorthand of assertion.

```
// normally
$this->assertThat($actual, $this->equalTo($expect));

// shorthand
assertThat($actual, equalTo($expect));
```

This is very useful, but you need to explicitly load `Functions.php`.

```
// I need to know location of Functions.php
require_once __DIR__ . '/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php';
```

This is more difficult when running phpunit with phar.

```
// I need to know phar filename
require_once 'phar://phpunit-6.2.phar/phpunit/Framework/Assert/Functions.php';
```

If you add `ngyuki/phpunit-functions` to your project, `Functions.php` will be loaded automatically.

```
composer require --dev ngyuki/phpunit-functions
```

Enjoy Testing!

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3264d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1871654?v=4)[Toshiyuki Goto](/maintainers/ngyuki)[@ngyuki](https://github.com/ngyuki)

---

Top Contributors

[![ngyuki](https://avatars.githubusercontent.com/u/1871654?v=4)](https://github.com/ngyuki "ngyuki (9 commits)")

---

Tags

testingphpunit

### Embed Badge

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

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

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k955.1M155.2k](/packages/phpunit-phpunit)[brianium/paratest

Parallel testing for PHP

2.5k136.1M986](/packages/brianium-paratest)[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k9.0M410](/packages/codedungeon-phpunit-result-printer)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69619.8M640](/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

57129.2M612](/packages/dg-bypass-finals)[phpunit/phpunit-selenium

Selenium Server integration for PHPUnit

61011.1M165](/packages/phpunit-phpunit-selenium)

PHPackages © 2026

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