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

077[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 1w 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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

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

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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