PHPackages                             quasilyte/kphpunit - 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. quasilyte/kphpunit

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

quasilyte/kphpunit
==================

KPHP polyfill-like package for the PHPUnit

089[2 issues](https://github.com/quasilyte/kphpunit/issues)PHP

Since Aug 11Pushed 4y agoCompare

[ Source](https://github.com/quasilyte/kphpunit)[ Packagist](https://packagist.org/packages/quasilyte/kphpunit)[ RSS](/packages/quasilyte-kphpunit/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

KPHPUnit
--------

[](#kphpunit)

[KPHP](https://github.com/VKCOM/kphp/) polyfill-like package for the [PHPUnit](https://phpunit.de/).

This package is exported to make it possible for [ktest](https://github.com/quasilyte/ktest) to work in `phpunit` mode.

Everything you need to know about this package:

1. It tries to mimic the `PHPUnit` API where possible, so you don't need a `kphpunit` API reference; it's the same
2. You install it to your `[K]PHP` project to have an ability to run KPHP tests.
3. You never directly use it on your own. It's inserted into the instrumented code produced by the `ktest` code generator.

So if you need anything apart from installing this package, please file an issue in [ktest](https://github.com/quasilyte/ktest/issues/new) repository.

To install this package, do the following:

```
$ composer require --dev quasilyte/kphpunit
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

kphpkphpunitktestphpphpunitpolyfilltesttests

### Embed Badge

![Health badge](/badges/quasilyte-kphpunit/health.svg)

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

###  Alternatives

[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)
