[1] | 1 | <?php |
---|
[362] | 2 | /** |
---|
| 3 | * The Strangecode Codebase - a general application development framework for PHP |
---|
| 4 | * For details visit the project site: <http://trac.strangecode.com/codebase/> |
---|
[396] | 5 | * Copyright 2001-2012 Strangecode, LLC |
---|
[362] | 6 | * |
---|
| 7 | * This file is part of The Strangecode Codebase. |
---|
| 8 | * |
---|
| 9 | * The Strangecode Codebase is free software: you can redistribute it and/or |
---|
| 10 | * modify it under the terms of the GNU General Public License as published by the |
---|
| 11 | * Free Software Foundation, either version 3 of the License, or (at your option) |
---|
| 12 | * any later version. |
---|
| 13 | * |
---|
| 14 | * The Strangecode Codebase is distributed in the hope that it will be useful, but |
---|
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
| 16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
---|
| 17 | * details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU General Public License along with |
---|
| 20 | * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | /* |
---|
| 24 | * Configuration for unit tests. |
---|
| 25 | * |
---|
| 26 | * @author Quinn Comendant <quinn@strangecode.com> |
---|
| 27 | * @version 1.0 |
---|
| 28 | */ |
---|
[1] | 29 | require_once '../lib/App.inc.php'; |
---|
[136] | 30 | $app =& App::getInstance('testapp'); |
---|
[1] | 31 | |
---|
| 32 | $app->setParam(array( |
---|
| 33 | 'site_name' => 'Test App', |
---|
| 34 | 'site_email' => 'hello@example.com', |
---|
| 35 | 'redirect_home_url' => '/', |
---|
| 36 | 'enable_session' => true, |
---|
| 37 | 'enable_db_session_handler' => true, |
---|
| 38 | 'session_use_cookies' => true, |
---|
| 39 | 'session_name' => 'StrangecodeTestSession', |
---|
| 40 | 'enable_db' => true, |
---|
| 41 | 'db_create_tables' => true, |
---|
| 42 | 'db_always_debug' => false, |
---|
| 43 | 'db_debug' => true, |
---|
| 44 | 'db_die_on_failure' => true, |
---|
| 45 | 'db_server' => 'localhost', |
---|
| 46 | 'db_name' => 'test', |
---|
| 47 | 'db_user' => 'root', |
---|
[15] | 48 | 'db_pass' => getenv('DB_PASS'), |
---|
[1] | 49 | 'display_errors' => true, |
---|
| 50 | 'db_always_debug' => false, // TRUE = display all SQL queries. |
---|
| 51 | 'db_debug' => true, |
---|
| 52 | 'db_die_on_failure' => true, |
---|
| 53 | 'log_directory' => '/tmp', |
---|
| 54 | 'log_filename' => 'codebase_test_log', |
---|
| 55 | 'log_file_priority' => LOG_DEBUG, |
---|
[43] | 56 | 'log_screen_priority' => LOG_WARNING, |
---|
[1] | 57 | 'error_reporting' => E_ALL, |
---|
| 58 | )); |
---|
| 59 | |
---|
| 60 | $app->start(); |
---|
[12] | 61 | ?> |
---|