Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (15 sloc) 0.943 kb
66e6132 @BRMatt Initial import
BRMatt authored
1 # Kohana-PHPUnit integration
2
03e4226 Readme update, coding style cleanup
Geert De Deckere authored
3 This module integrates PHPUnit with Kohana.
66e6132 @BRMatt Initial import
BRMatt authored
4
03e4226 Readme update, coding style cleanup
Geert De Deckere authored
5 If you look through any of the tests provided in this module you'll probably notice all theHorribleCamelCase.
1a863d9 Adding an explanation for the absurd camelCase
Matt authored
6 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.
66e6132 @BRMatt Initial import
BRMatt authored
7
d3ec0ca @BRMatt Changed paths in README and added requirements section
BRMatt authored
8 ## Requirements
9
03e4226 Readme update, coding style cleanup
Geert De Deckere authored
10 * [PHPUnit](http://www.phpunit.de/) >= 3.4
786c564 @BRMatt Fixing requirements, thanks rafi!
BRMatt authored
11
b4d77c6 @BRMatt Removing unittest ui, fixes #3455
BRMatt authored
12 ## Usage
786c564 @BRMatt Fixing requirements, thanks rafi!
BRMatt authored
13
b4d77c6 @BRMatt Removing unittest ui, fixes #3455
BRMatt authored
14 $ phpunit --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php
d3ec0ca @BRMatt Changed paths in README and added requirements section
BRMatt authored
15
b4d77c6 @BRMatt Removing unittest ui, fixes #3455
BRMatt authored
16 Alternatively you can use a `phpunit.xml` to have a more fine grained control
17 over which tests are included and which files are whitelisted.
66e6132 @BRMatt Initial import
BRMatt authored
18
b4d77c6 @BRMatt Removing unittest ui, fixes #3455
BRMatt authored
19 Make sure you only whitelist the highest files in the cascading filesystem, else
20 you could end up with a lot of "class cannot be redefined" errors.
f127e9a Added the notorious STEP 0 (thanks jerph ;)
Matt authored
21
b4d77c6 @BRMatt Removing unittest ui, fixes #3455
BRMatt authored
22 If you use the `tests.php` testsuite loader then it will only whitelist the
23 highest files. see `config/unittest.php` for details on configuring the
24 `tests.php` whitelist.
Something went wrong with that request. Please try again.