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.8k12BSD-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 today

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

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 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community19

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

3523d 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

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k488.3M20.8k](/packages/mockery-mockery)[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k548.7M613](/packages/phpspec-prophecy)[sebastian/global-state

Snapshotting of global state

6.6k848.0M40](/packages/sebastian-global-state)[hamcrest/hamcrest-php

This is the PHP port of Hamcrest Matchers

7.1k475.4M94](/packages/hamcrest-hamcrest-php)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k76.1M6.0k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k113.9M623](/packages/brianium-paratest)

PHPackages © 2026

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