• Stars
    star
    111
  • Rank 313,563 (Top 7 %)
  • Language
    PHP
  • Created almost 15 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PHPUnit integration for Kohana

Kohana-PHPUnit integration

ver Stable Develop
3.3.x Build Status - 3.3/master Build Status - 3.3/develop
3.4.x Build Status - 3.4/master Build Status - 3.4/develop

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

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

$ 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.

More Repositories

1

kohana

Basic application with official modules included
PHP
1,545
star
2

core

Core system classes from Kohana
PHP
635
star
3

userguide

Kohana user guide and live API documentation module
PHP
164
star
4

database

A Kohana module for database interactions, building queries, and prepared statements
PHP
159
star
5

orm

Kohana ORM
PHP
159
star
6

minion

Everyone loves having a minion they can boss around
PHP
113
star
7

auth

Auth module for Kohana v3
PHP
103
star
8

image

A Kohana module for manipulating images
PHP
103
star
9

cache

Cache library for Kohana 3
PHP
78
star
10

kohanaframework.org

Kohana Framework main website
PHP
65
star
11

coding-standards

PHPCS rules for the Kohana framework
PHP
58
star
12

ohanzee-helpers

PHP
56
star
13

codebench

A benchmarking module for Kohana 3.x
PHP
32
star
14

Kohana.tmbundle

A TextMate bundle for Kohana v3
30
star
15

ohanzee

Website for Ohanzee project
CSS
15
star
16

cascading-filesystem

A virtual filesystem formed from merging multiple directories
PHP
13
star
17

ohanzee-router

Router component for Ohanzee
9
star
18

kohana-ci

kohana-ci
Shell
8
star
19

kohana.github.com

Github user page for Kohana PHP Framework
PHP
7
star
20

ohanzee-request

Ohanzee component for HTTP Request and Response wrapping
7
star
21

kohana2

Archive repo for Kohana2 framework - NOT MAINTAINED
PHP
7
star
22

Kohana-Redmine

Kohana's Redmine changes
Ruby
6
star
23

koharness

Create test harnesses for Kohana modules by building a clean application container with all dependencies
PHP
5
star
24

ohanzee-db

Ohanzee database component
PHP
3
star
25

doctrine

Doctrine integration for Kohana
PHP
3
star
26

chef-redmine

Redmine Recipe for Kohana
Ruby
2
star
27

vanilla-theme-kohana

Kohana's Vanilla Theme
PHP
1
star