PHPackages                             aivus/test-helper - 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. aivus/test-helper

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

aivus/test-helper
=================

Helper package for testing

v0.1(10y ago)085MITPHPPHP &gt;=5.3.0

Since Jun 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/aivus/test-helper)[ Packagist](https://packagist.org/packages/aivus/test-helper)[ RSS](/packages/aivus-test-helper/feed)WikiDiscussions master Synced 1mo ago

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

Test Helper
===========

[](#test-helper)

[![Build Status](https://camo.githubusercontent.com/79c56b10bfecc63ee55273645b347c3d8dbbb60a52cd0cbdf96e70d49e07e1e5/68747470733a2f2f7472617669732d63692e6f72672f61697675732f746573742d68656c7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/aivus/test-helper)[![Coverage Status](https://camo.githubusercontent.com/b8a1d14f90f539dea99540d26b8faab8043e01de31a690ac3d116d05cb4f4102/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f61697675732f746573742d68656c7065722f62616467652e737667)](https://coveralls.io/r/aivus/test-helper)[![Latest Stable Version](https://camo.githubusercontent.com/4fe8e3b150a2da41618f2281e62b4c5c348bc101a966bcf36d50fc152f770642/68747470733a2f2f706f7365722e707567782e6f72672f61697675732f746573742d68656c7065722f762f737461626c652e737667)](https://packagist.org/packages/aivus/test-helper)[![Total Downloads](https://camo.githubusercontent.com/2db30bff3d288b353ff33635358160f7285c8d5341225b179aba26460dd052aa/68747470733a2f2f706f7365722e707567782e6f72672f61697675732f746573742d68656c7065722f646f776e6c6f6164732e737667)](https://packagist.org/packages/aivus/test-helper)[![Latest Unstable Version](https://camo.githubusercontent.com/c7450a9452ef0d04211a86c333ce831096ab19aa96f29e37cce8e9728c040489/68747470733a2f2f706f7365722e707567782e6f72672f61697675732f746573742d68656c7065722f762f756e737461626c652e737667)](https://packagist.org/packages/aivus/test-helper)

This package provide simple helpers for testing.

API
===

[](#api)

### TestHelper::getPropertyValue($classOrObject, $propertyName)

[](#testhelpergetpropertyvalueclassorobject-propertyname)

This method allows to get property value of class (if property is static) or object (include private/protected)

### TestHelper::setPropertyValue($classOrObject, $propertyName, $propertyValue)

[](#testhelpersetpropertyvalueclassorobject-propertyname-propertyvalue)

This method allows to set value of class (if property is static) or object property

### TestHelper::getMethod($className, $methodName)

[](#testhelpergetmethodclassname-methodname)

This method allows to get class method (include private/protected)

### getProperty($classNameOrObject, $propertyName)

[](#getpropertyclassnameorobject-propertyname)

This method allows to get class property (include private/protected)

### invokeMethod($classNameOrObject, $methodName, \[$parameters\])

[](#invokemethodclassnameorobject-methodname-parameters)

This method provide ability to call private/protected methods in the object

###  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

Maturity48

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

3991d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f614b135bf7fd4b6acd4664ecf3c62cf13a56a376296ee436838205e23b3b0fa?d=identicon)[aivus](/maintainers/aivus)

---

Top Contributors

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

---

Tags

testingunithelper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aivus-test-helper/health.svg)

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

###  Alternatives

[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)[nette/tester

Nette Tester: enjoyable unit testing in PHP with code coverage reporter. 🍏🍏🍎🍏

4917.3M1.5k](/packages/nette-tester)[php-vfs/php-vfs

Virtual file system implementation for use with PHP unit testing.

572.7M24](/packages/php-vfs-php-vfs)[tcz/phpunit-mockfunction

PHPUnit extension that uses runkit to mock PHP functions (both user-defined and system)

4950.3k2](/packages/tcz-phpunit-mockfunction)[sofa/eloquent-testsuite

Helpers for fast and reliable UNIT tests for your Eloquent Models with PHPUnit

10104.7k](/packages/sofa-eloquent-testsuite)

PHPackages © 2026

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