CC-5651: Unit Test the Scheduler
* Unit test bootstrapping work. * Added a README.txt for the unit testing environment
This commit is contained in:
parent
e638101a97
commit
84c7e21bea
2 changed files with 35 additions and 1 deletions
|
@ -15,5 +15,24 @@ set_include_path(implode(PATH_SEPARATOR, array(
|
|||
get_include_path(),
|
||||
)));
|
||||
|
||||
// Ensure library/ is on include_path
|
||||
set_include_path(implode(PATH_SEPARATOR, array(
|
||||
get_include_path(),
|
||||
realpath(APPLICATION_PATH . '/../library')
|
||||
)));
|
||||
|
||||
set_include_path(APPLICATION_PATH . '/common' . PATH_SEPARATOR . get_include_path());
|
||||
|
||||
//Propel classes.
|
||||
set_include_path(APPLICATION_PATH . '/models' . PATH_SEPARATOR . get_include_path());
|
||||
|
||||
//Controller plugins.
|
||||
set_include_path(APPLICATION_PATH . '/controllers/plugins' . PATH_SEPARATOR . get_include_path());
|
||||
|
||||
//Zend framework
|
||||
if (file_exists('/usr/share/php/libzend-framework-php')) {
|
||||
set_include_path('/usr/share/php/libzend-framework-php' . PATH_SEPARATOR . get_include_path());
|
||||
}
|
||||
|
||||
require_once 'Zend/Application.php';
|
||||
#require_once 'DatabaseTestCase.php';
|
||||
#require_once 'DatabaseTestCase.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue