This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/includes/kohana/modules/unittest
2012-12-21 13:01:12 +11:00
..
classes Upgraded to KH 3.3.0 2012-12-21 12:59:09 +11:00
config Upgraded to KH 3.3.0 2012-12-21 12:59:09 +11:00
guide/unittest Upgraded to KH 3.3.0 2012-12-21 12:59:09 +11:00
bootstrap_all_modules.php Upgraded to KH 3.3.0 2012-12-21 12:59:09 +11:00
bootstrap.php Fixes to OSB to work with KH 3.3 2012-12-21 13:01:12 +11:00
example.phpunit.xml Added Kohana v3.0.8 2011-05-03 09:49:01 +10:00
README.markdown Upgraded to KH 3.3.0 2012-12-21 12:59:09 +11:00
tests.php Upgraded to KH 3.3.0 2012-12-21 12:59:09 +11:00

Kohana-PHPUnit integration

This module integrates PHPUnit with Kohana.

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

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.