PHPackages                             aipng/test-helpers - 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. aipng/test-helpers

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

aipng/test-helpers
==================

Private properties trait useful for testing purposes

0.1(7y ago)085MITPHPPHP &gt;= 7.1

Since Nov 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aipng/test-helpers)[ Packagist](https://packagist.org/packages/aipng/test-helpers)[ RSS](/packages/aipng-test-helpers/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Test helpers
============

[](#test-helpers)

PrivatePropertyTrait
--------------------

[](#privatepropertytrait)

Provides an easy way to set private property of an object using reflection.

Do not use in production, use only for testing purposes.

Example: MyClass.php

```
final class MyClass
{

	private $foo;

	// ...
}
```

MyClassTest.php

```
final class MyClassTest extends TestCase
{

	use PrivatePropertyTrait;

	public function testSetPrivateProperties(): void
    {
    	$object = new MyClass;

        $this->setPrivateProperties($object, [
			'foo' => 'bar',
		]);

		// ...
	}

}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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

2731d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35b41cd5d99fc8f0371a422b7ad64c164a21115a0598f97a74f8ff321f4dcee6?d=identicon)[aipng](/maintainers/aipng)

---

Top Contributors

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

---

Tags

testingunit-testsPrivate Properties

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aipng-test-helpers/health.svg)

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

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k892.4M1.5k](/packages/phpunit-php-code-coverage)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symfony/phpunit-bridge

Provides utilities for PHPUnit, especially user deprecation notices management

2.5k201.2M4.2k](/packages/symfony-phpunit-bridge)[brianium/paratest

Parallel testing for PHP

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

PHPackages © 2026

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