PHPackages                             openbuildings/kohana-test-bootstrap - 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. openbuildings/kohana-test-bootstrap

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

openbuildings/kohana-test-bootstrap
===================================

Helper package for testing Kohana modules

0.2.0(9y ago)22.8k17BSD-3-ClausePHP

Since Aug 12Pushed 9y ago12 watchersCompare

[ Source](https://github.com/OpenBuildings/kohana-test-bootstrap)[ Packagist](https://packagist.org/packages/openbuildings/kohana-test-bootstrap)[ RSS](/packages/openbuildings-kohana-test-bootstrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (7)

Kohana Test Bootstrap
=====================

[](#kohana-test-bootstrap)

For testing kohana modules individaully - a composer package holding all the kohana framework system and core modules.

If you want to write a module and test it independantly (via some Cloud CI for example) - then you need the kohana environment, and as its not yet in composer, it could be problematic. This adds all the kohana autoloading and cascading filesystem, as well as the core modules, which you can enable as needed.

Usage
-----

[](#usage)

As it is intended for testing its recommended that you place it in your require-dev section of the composer.json like this:

"require-dev": { "openbuildings/kohana-test-bootsrap": "dev-master" }

After that you should enter the create a "test bootstrap file", in your tests folder like this:

```
tests/bootstrap.php

```

```
require_once __DIR__.'/../vendor/autoload.php';

Kohana::modules(array(
	// Add some core kohaan modules
	'database' => MODPATH.'database',
	'cache'    => MODPATH.'cache',
	// Your own module - this is where the module you are testing will appear in kohana's cascading filesystem
	'functest' => __DIR__.'/..',
	// Any other kohana modules, required with composer.json can be added like this
	'test'     => __DIR__.'/../tests/testmodule',
));

// Add some custom configuration, to be used only in testing - for example we adda a database config.
Kohana::$config
	->load('database')
		->set(Kohana::TESTING, array(
			'type'       => 'MySQL',
			'connection' => array(
				'hostname'   => 'localhost',
				'database'   => 'test-functest',
				'username'   => 'root',
				'password'   => '',
				'persistent' => TRUE,
			),
			'table_prefix' => '',
			'charset'      => 'utf8',
			'caching'      => FALSE,
		));
```

An example phpunit would be:

```
phpunit.xml

```

```

			tests/tests

			vendor/

```

which assigns tests/bootstrap.php as the phpunit's bootstrap file.

Author
------

[](#author)

Developed by Ivan Kerin as part of [clippings.com](http://clippings.com)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~360 days

Total

4

Last Release

3573d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506129?v=4)[Harry Dobrev](/maintainers/hkdobrev)[@hkdobrev](https://github.com/hkdobrev)

![](https://avatars.githubusercontent.com/u/4113307?v=4)[Danail Kyosev](/maintainers/dkyosev)[@dkyosev](https://github.com/dkyosev)

![](https://avatars.githubusercontent.com/u/7592650?v=4)[Evstati Zarkov](/maintainers/EZarkov)[@EZarkov](https://github.com/EZarkov)

![](https://avatars.githubusercontent.com/u/745771?v=4)[Filip Georgiev](/maintainers/phgeorgiev)[@phgeorgiev](https://github.com/phgeorgiev)

![](https://avatars.githubusercontent.com/u/490439?v=4)[Zdravko Evstatiev](/maintainers/zedevs)[@zedevs](https://github.com/zedevs)

---

Top Contributors

[![hkdobrev](https://avatars.githubusercontent.com/u/506129?v=4)](https://github.com/hkdobrev "hkdobrev (11 commits)")

### Embed Badge

![Health badge](/badges/openbuildings-kohana-test-bootstrap/health.svg)

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

###  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.9M571](/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)
