PHPackages                             avinash403/phpunit-testing-kit - 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. avinash403/phpunit-testing-kit

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

avinash403/phpunit-testing-kit
==============================

Gives all the helper traits and classes that you will ever need to test a PHP application

v1.0.0(7y ago)315[2 issues](https://github.com/avinash403/phpunit-testing-kit/issues)OSL-1.0PHP

Since May 30Pushed 7y ago3 watchersCompare

[ Source](https://github.com/avinash403/phpunit-testing-kit)[ Packagist](https://packagist.org/packages/avinash403/phpunit-testing-kit)[ RSS](/packages/avinash403-phpunit-testing-kit/feed)WikiDiscussions master Synced 2mo ago

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

PHPunit testing kit
===================

[](#phpunit-testing-kit)

Collection of useful traits and classes that can be handy while testing a PHP application.

Installation by Composer
------------------------

[](#installation-by-composer)

```
$ composer require avinash403/phpunit-testing-kit

```

Available Traits
----------------

[](#available-traits)

### Assertions

[](#assertions)

Contains some common assertions that is commonly used but PHPunit doesn't provide it.

**USAGE**

```
use TestingKit\Assertions;
use PHPUnit\Framework\TestCase;

class ExampleTest extends TestCase
{
	use Assertions;

	public function test_exampleTest()
	{
		$this->assertAlpha('a');
	}
}

```

**Available Assertions**

```
	* assertAlpha
	* assertNotAlpha
	* assertNumber
	* assertNotNumber
	* assertArrayHasKeys
	* assertStringContainsSubstring
	* assertStringNotContainsSubstring
```

### PrivateAccess

[](#privateaccess)

Allows testing private and protected method and properties of a class.

**USAGE**

```
use TestingKit\PrivateAccess;
use PHPUnit\Framework\TestCase;

class ExampleTest extends TestCase
{
	use PrivateAccess;

	public function test_exampleTest_forGettingPrivateMethod()
	{
		$classObject = new Class();

		//getting private method
		$methodResponse = $this->getPrivateMethod($classObject, 'exampleMethod', ['some text']);

		$this->assertEquals($methodResponse, 'some text');
	}
}

class ExampleClass
{
	private exampleMethod($someArgument)
	{
		return $someArgument;
	}
}

```

**Available Features**

```
	* getPrivateMethod
	* setPrivateProperty
	* getPrivateProperty
```

### Test

[](#test)

Run test by simply typing `composer test`from the root directory of this package.

### Contribute on github

[](#contribute-on-github)

clone this repository(  ), make your changes and raise a pull request to development branch

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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

2909d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9025cebb7b1dee4016c166d70d8171c7a36f9908dbcfa6bfbb341950b88e8ec4?d=identicon)[avinash403](/maintainers/avinash403)

---

Top Contributors

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

---

Tags

testingphpunittesting kitphp testing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/avinash403-phpunit-testing-kit/health.svg)

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

###  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)[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k8.8M397](/packages/codedungeon-phpunit-result-printer)[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)[phpunit/phpunit-selenium

Selenium Server integration for PHPUnit

59610.9M150](/packages/phpunit-phpunit-selenium)

PHPackages © 2026

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