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/init.php

17 lines
407 B
PHP
Raw Normal View History

2010-08-21 04:43:03 +00:00
<?php
// If we're on the CLI then PHPUnit will already be loaded
2011-05-13 06:00:25 +00:00
if (class_exists('PHPUnit_Util_Filter', FALSE) OR function_exists('phpunit_autoload'))
2010-08-21 04:43:03 +00:00
{
2011-05-13 06:00:25 +00:00
Unittest_Tests::configure_environment();
2010-08-21 04:43:03 +00:00
// Stop kohana from processing the request
define('SUPPRESS_REQUEST', TRUE);
}
Route::set('unittest', 'unittest(/<action>)')
->defaults(array(
'controller' => 'unittest',
'action' => 'index',
));