PHPackages                             jopic/reflectiontestutils - 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. jopic/reflectiontestutils

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

jopic/reflectiontestutils
=========================

utility class for field injection in tests

1.0.1(11y ago)024Apache-2.0PHPPHP &gt;=5.1.0

Since Jan 28Pushed 11y ago1 watchersCompare

[ Source](https://github.com/fetzi/ReflectionTestUtils)[ Packagist](https://packagist.org/packages/jopic/reflectiontestutils)[ Docs](https://github.com/fetzi/ReflectionTestUtils)[ RSS](/packages/jopic-reflectiontestutils/feed)WikiDiscussions master Synced yesterday

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

ReflectionTestUtils - Utility class for field injection on test classes
=======================================================================

[](#reflectiontestutils---utility-class-for-field-injection-on-test-classes)

Utility Class for manipulating classes under test This can be relevant if you want to mock certain class variables (e.g. external data providers that don't need to be tested within the current test)

Build Status
------------

[](#build-status)

[![Build Status](https://camo.githubusercontent.com/7e0d273bcbe34b869c4809d589ba3c4ce405f22006b59a33db1339893474c7b4/68747470733a2f2f7472617669732d63692e6f72672f6665747a692f5265666c656374696f6e546573745574696c732e737667)](https://travis-ci.org/fetzi/ReflectionTestUtils)

License
-------

[](#license)

Copyright 2015 Johannes Pichler

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

```
http://www.apache.org/licenses/LICENSE-2.0

```

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Every ~60 days

Total

2

Last Release

4114d ago

### Community

Maintainers

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

---

Tags

reflectiontest utils

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jopic-reflectiontestutils/health.svg)

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

###  Alternatives

[nyholm/nsa

See everything and do whatever you want. No privacy rule will stop us. Used in tests, debugging and fixtures to access properties and methods.

2286.3M87](/packages/nyholm-nsa)[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

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