Initial unit test configuration
This commit is contained in:
parent
9e5cfe0d39
commit
0f107dbad3
40 changed files with 4301 additions and 303 deletions
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
|
||||
// Define path to application directory
|
||||
defined('APPLICATION_PATH')
|
||||
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
|
||||
|
||||
// Define application environment
|
||||
defined('APPLICATION_ENV')
|
||||
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'testing'));
|
||||
|
||||
// Ensure library/ is on include_path
|
||||
set_include_path(implode(PATH_SEPARATOR, array(
|
||||
realpath('./library'),
|
||||
get_include_path(),
|
||||
)));
|
||||
|
||||
require_once 'Zend/Application.php';
|
||||
#require_once 'DatabaseTestCase.php';
|
Loading…
Add table
Add a link
Reference in a new issue