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

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

phpunit tests now work with phpunit 3.7

File size: 2.1 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$_SERVER['DB_SERVER'] = 'localhost';
32$_SERVER['DB_USER'] = 'sc';
33$_SERVER['DB_NAME'] = 'sc_db';
34$_SERVER['DB_PASS'] = '1234';
35
36$app =& App::getInstance('testapp');
37
38$app->setParam(array(
39    'site_name' => 'Test App',
40    'site_email' => 'hello@example.com',
41    'redirect_home_url' => '/',
42    'enable_session' => true,
43    'enable_db_session_handler' => true,
44    'session_use_cookies' => true,
45    'session_name' => 'StrangecodeTestSession',
46    'enable_db' => true,
47    'db_create_tables' => true,
48    'db_always_debug' => false,
49    'db_debug' => true,
50    'db_die_on_failure' => true,
51    'db_server' => 'localhost',
52    'db_name' => getenv('DB_NAME'),
53    'db_user' => getenv('DB_USER'),
54    'db_pass' => getenv('DB_PASS'),
55    'display_errors' => true,
56    'db_always_debug' => false, // TRUE = display all SQL queries.
57    'db_debug' => true,
58    'db_die_on_failure' => true,
59    'log_directory' => '/tmp',
60    'log_filename' => 'codebase_test_log',
61    'log_file_priority' => LOG_DEBUG,
62    'log_screen_priority' => LOG_WARNING,
63    'error_reporting' => E_ALL,
64));
65
66$app->start();
Note: See TracBrowser for help on using the repository browser.