source: trunk/tests/_config.inc.php

Last change on this file was 599, checked in by anonymous, 7 years ago

Update tests to function with phpunit 5.7 (not tested)

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