Added unit test module and updated bootstrap.php with requirements for testing

This commit is contained in:
Woody Gilk 2010-07-04 07:08:45 -05:00
parent 9fc3f5fc94
commit e7c534748a
3 changed files with 16 additions and 9 deletions

3
.gitmodules vendored
View file

@ -25,3 +25,6 @@
[submodule "modules/cache"]
path = modules/cache
url = git://github.com/kohana/cache.git
[submodule "modules/unittest"]
path = modules/unittest
url = git://github.com/kohana/unittest.git

View file

@ -51,7 +51,6 @@ ini_set('unserialize_callback_func', 'spl_autoload_call');
*/
Kohana::init(array(
'base_url' => '/',
'index_file' => FALSE,
));
/**
@ -75,6 +74,7 @@ Kohana::modules(array(
// 'image' => MODPATH.'image', // Image manipulation
// 'orm' => MODPATH.'orm', // Object Relationship Mapping
// 'pagination' => MODPATH.'pagination', // Paging of results
// 'unittest' => MODPATH.'unittest', // Unit testing
// 'userguide' => MODPATH.'userguide', // User guide and API documentation
));
@ -88,11 +88,14 @@ Route::set('default', '(<controller>(/<action>(/<id>)))')
'action' => 'index',
));
/**
* Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].
* If no source is specified, the URI will be automatically detected.
*/
echo Request::instance()
->execute()
->send_headers()
->response;
if ( ! defined('SUPRESS_REQUEST'))
{
/**
* Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].
* If no source is specified, the URI will be automatically detected.
*/
echo Request::instance()
->execute()
->send_headers()
->response;
}

1
modules/unittest Submodule

@ -0,0 +1 @@
Subproject commit 6faf482374c13919930e933832580dc5840b72b2