PHPackages                             tscms/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. tscms/unittest

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

tscms/unittest
==============

PHPUnit integration for running unit tests on the Kohana framework

v3.3.4(10y ago)015BSD-3-ClausePHPPHP &gt;=5.3.3

Since Aug 26Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (14)Used By (0)

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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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 ~167 days

Total

6

Last Release

3969d ago

### Community

Maintainers

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

---

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)")[![zeelot](https://avatars.githubusercontent.com/u/40011?v=4)](https://github.com/zeelot "zeelot (18 commits)")[![acoulton](https://avatars.githubusercontent.com/u/416566?v=4)](https://github.com/acoulton "acoulton (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)")[![enov](https://avatars.githubusercontent.com/u/4045110?v=4)](https://github.com/enov "enov (4 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)")[![truongthaison](https://avatars.githubusercontent.com/u/7956129?v=4)](https://github.com/truongthaison "truongthaison (2 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)")[![jessedc](https://avatars.githubusercontent.com/u/17407?v=4)](https://github.com/jessedc "jessedc (1 commits)")

---

Tags

frameworkkohana

### Embed Badge

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

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

###  Alternatives

[pestphp/pest

The elegant PHP Testing Framework.

11.4k59.5M14.1k](/packages/pestphp-pest)[kohana/database

The official Kohana module for database interactions, building queries, and prepared statements

158486.0k19](/packages/kohana-database)[kohana/image

The official Kohana module for manipulating images

103461.3k8](/packages/kohana-image)[kohana/unittest

PHPUnit integration for running unit tests on the Kohana framework

11040.8k17](/packages/kohana-unittest)[kohana/auth

The official Kohana auth module

101227.2k9](/packages/kohana-auth)[kohana/cache

The official Kohana cache management module

76318.3k8](/packages/kohana-cache)

PHPackages © 2026

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