Added Kohana v3.0.9
This commit is contained in:
16
includes/kohana/modules/unittest/init.php
Normal file
16
includes/kohana/modules/unittest/init.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
// If we're on the CLI then PHPUnit will already be loaded
|
||||
if (class_exists('PHPUnit_Util_Filter', FALSE) OR function_exists('phpunit_autoload'))
|
||||
{
|
||||
Kohana_Tests::configure_environment();
|
||||
|
||||
// Stop kohana from processing the request
|
||||
define('SUPPRESS_REQUEST', TRUE);
|
||||
}
|
||||
|
||||
Route::set('unittest', 'unittest(/<action>)')
|
||||
->defaults(array(
|
||||
'controller' => 'unittest',
|
||||
'action' => 'index',
|
||||
));
|
Reference in New Issue
Block a user