PHPackages                             kohana/unittest - 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. [Framework](/categories/framework)
4. /
5. kohana/unittest

AbandonedArchivedKohana-module[Framework](/categories/framework)

kohana/unittest
===============

PHPUnit integration for running unit tests on the Kohana framework

v3.3.6(10y ago)11041.5k66[1 issues](https://github.com/kohana/unittest/issues)17BSD-3-ClausePHPPHP &gt;=5.3.3CI failing

Since Aug 26Pushed 9y ago13 watchersCompare

[ Source](https://github.com/kohana/unittest)[ Packagist](https://packagist.org/packages/kohana/unittest)[ Docs](http://kohanaframework.org)[ RSS](/packages/kohana-unittest/feed)WikiDiscussions 3.3/master Synced today

READMEChangelog (1)Dependencies (5)Versions (13)Used By (17)

Kohana-PHPUnit integration
==========================

[](#kohana-phpunit-integration)

verStableDevelop3.3.x[![Build Status - 3.3/master](https://camo.githubusercontent.com/13e1f5b162d4bd1bbc70e9ea14fbca40e5ac182e4a9c8db693fc220605a05868/68747470733a2f2f7472617669732d63692e6f72672f6b6f68616e612f756e6974746573742e7376673f6272616e63683d332e332532466d6173746572)](https://travis-ci.org/kohana/unittest)[![Build Status - 3.3/develop](https://camo.githubusercontent.com/90a92d93407b0d6e18b534bd213a53095debf02dad7bf3fbf36e7f42f9c2d513/68747470733a2f2f7472617669732d63692e6f72672f6b6f68616e612f756e6974746573742e7376673f6272616e63683d332e33253246646576656c6f70)](https://travis-ci.org/kohana/unittest)3.4.x[![Build Status - 3.4/master](https://camo.githubusercontent.com/fe46fcc5e6fe36ca28bd82e0fada2af4001bf276974125b7312f91878f40d879/68747470733a2f2f7472617669732d63692e6f72672f6b6f68616e612f756e6974746573742e7376673f6272616e63683d332e342532466d6173746572)](https://travis-ci.org/kohana/unittest)[![Build Status - 3.4/develop](https://camo.githubusercontent.com/38286ae4aed22bfb630cb53a3a50432d816682ca14ab77cda7d5d181312ce011/68747470733a2f2f7472617669732d63692e6f72672f6b6f68616e612f756e6974746573742e7376673f6272616e63683d332e34253246646576656c6f70)](https://travis-ci.org/kohana/unittest)This module integrates PHPUnit with Kohana and is used to run all the core Kohana tests. In most cases you will not need to use this module for testing your own projects. If there are particular helpers provided here that you rely on, that may be a sign that your own code is too closely coupled to the behaviour of the Kohana core classes.

If you look through any of the tests provided in this module you'll probably notice all theHorribleCamelCase. I've chosen to do this because it's part of the PHPUnit coding conventions and is required for certain features such as auto documentation.

Requirements and installation
-----------------------------

[](#requirements-and-installation)

Dependencies are listed in the composer.json - run `composer install` to install the module and all external requirements. Note that more usually you will add this module to your own module's composer.json:

```
{
  "require-dev": {
    "kohana/unittest": "3.3.*@dev"
  }
}
```

Usage
-----

[](#usage)

```
$ phpunit --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php

```

Alternatively you can use a `phpunit.xml` to have a more fine grained control over which tests are included and which files are whitelisted.

Make sure you only whitelist the highest files in the cascading filesystem, else you could end up with a lot of "class cannot be redefined" errors.

If you use the `tests.php` testsuite loader then it will only whitelist the highest files. see `config/unittest.php` for details on configuring the `tests.php` whitelist.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community40

Growing community involvement

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 50.6% 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

Every ~134 days

Recently: every ~117 days

Total

8

Last Release

3755d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38203?v=4)[Woody Gilk](/maintainers/shadowhand)[@shadowhand](https://github.com/shadowhand)

![](https://avatars.githubusercontent.com/u/40011?v=4)[zeelot](/maintainers/Zeelot)[@zeelot](https://github.com/zeelot)

---

Top Contributors

[![BRMatt](https://avatars.githubusercontent.com/u/20394?v=4)](https://github.com/BRMatt "BRMatt (120 commits)")[![kiall](https://avatars.githubusercontent.com/u/52713?v=4)](https://github.com/kiall "kiall (23 commits)")[![acoulton](https://avatars.githubusercontent.com/u/416566?v=4)](https://github.com/acoulton "acoulton (20 commits)")[![zeelot](https://avatars.githubusercontent.com/u/40011?v=4)](https://github.com/zeelot "zeelot (18 commits)")[![enov](https://avatars.githubusercontent.com/u/4045110?v=4)](https://github.com/enov "enov (11 commits)")[![zombor](https://avatars.githubusercontent.com/u/170538?v=4)](https://github.com/zombor "zombor (9 commits)")[![bobeagan](https://avatars.githubusercontent.com/u/100226?v=4)](https://github.com/bobeagan "bobeagan (9 commits)")[![leth](https://avatars.githubusercontent.com/u/52370?v=4)](https://github.com/leth "leth (6 commits)")[![cbandy](https://avatars.githubusercontent.com/u/106560?v=4)](https://github.com/cbandy "cbandy (4 commits)")[![banks](https://avatars.githubusercontent.com/u/120915?v=4)](https://github.com/banks "banks (3 commits)")[![isaiahdw](https://avatars.githubusercontent.com/u/39220?v=4)](https://github.com/isaiahdw "isaiahdw (3 commits)")[![cambiata](https://avatars.githubusercontent.com/u/217074?v=4)](https://github.com/cambiata "cambiata (3 commits)")[![jessedc](https://avatars.githubusercontent.com/u/17407?v=4)](https://github.com/jessedc "jessedc (1 commits)")[![chandeeland](https://avatars.githubusercontent.com/u/845271?v=4)](https://github.com/chandeeland "chandeeland (1 commits)")[![ekingery](https://avatars.githubusercontent.com/u/130136?v=4)](https://github.com/ekingery "ekingery (1 commits)")[![mintbridge](https://avatars.githubusercontent.com/u/32777?v=4)](https://github.com/mintbridge "mintbridge (1 commits)")[![misa](https://avatars.githubusercontent.com/u/96317?v=4)](https://github.com/misa "misa (1 commits)")[![samsoir](https://avatars.githubusercontent.com/u/27978?v=4)](https://github.com/samsoir "samsoir (1 commits)")[![Ikke](https://avatars.githubusercontent.com/u/135698?v=4)](https://github.com/Ikke "Ikke (1 commits)")[![bharat](https://avatars.githubusercontent.com/u/54570?v=4)](https://github.com/bharat "bharat (1 commits)")

---

Tags

frameworkkohana

### Embed Badge

![Health badge](/badges/kohana-unittest/health.svg)

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

###  Alternatives

[pestphp/pest

The elegant PHP Testing Framework.

11.6k72.2M20.7k](/packages/pestphp-pest)[silverstripe/framework

The SilverStripe framework

7313.7M2.8k](/packages/silverstripe-framework)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)

PHPackages © 2026

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