source: branches/eli_branch/tests/_config.inc.php @ 541

Last change on this file since 541 was 446, checked in by anonymous, 11 years ago

Wrapper script for phpunit. Changed logMsg SCREEN action to print to stderr.

File size: 2.0 KB
Line 
1<?php
2/**
3 * The Strangecode Codebase - a general application development framework for PHP
4 * For details visit the project site: <http://trac.strangecode.com/codebase/>
5 * Copyright 2001-2012 Strangecode, LLC
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*/
29require_once '../lib/App.inc.php';
30
31$app =& App::getInstance('testapp');
32
33$app->setParam(array(
34    'site_name' => 'Test App',
35    'site_email' => 'hello@example.com',
36    'redirect_home_url' => '/',
37    'enable_session' => true,
38    'enable_db_session_handler' => true,
39    'session_use_cookies' => true,
40    'session_name' => 'StrangecodeTestSession',
41    'enable_db' => true,
42    'db_create_tables' => true,
43    'db_always_debug' => false,
44    'db_debug' => true,
45    'db_die_on_failure' => true,
46    'db_server' => 'localhost',
47    'db_name' => getenv('DB_NAME'),
48    'db_user' => getenv('DB_USER'),
49    'db_pass' => getenv('DB_PASS'),
50    'display_errors' => true,
51    'db_always_debug' => false, // TRUE = display all SQL queries.
52    'db_debug' => true,
53    'db_die_on_failure' => true,
54    'log_directory' => '/tmp',
55    'log_filename' => 'codebase_test_log',
56    'log_file_priority' => LOG_DEBUG,
57    'log_screen_priority' => LOG_WARNING,
58    'error_reporting' => E_ALL,
59));
60
61$app->start();
Note: See TracBrowser for help on using the repository browser.