6 * These tests will run before the configuration takes place
7 * in the unit test suite (mostly error handling tests).
9 * @file RedUNIT/Pretest.php
10 * @desc Test scripts that run before configuration
11 * @author Gabor de Mooij and the RedBeanPHP Community
12 * @license New BSD/GPLv2
14 * (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community.
15 * This source file is subject to the New BSD/GPLv2 License that is bundled
16 * with this source code in the file license.txt.
19 testpack('Running pre-tests. (before config).');
24 } catch( Exception $e ) {
28 asrt( R::testConnection(), FALSE);
30 R::addDatabase( 'broken', 'mysql:host=nowhere', 'defunct', 'void' );
31 R::selectDatabase( 'broken' );
32 asrt( R::testConnection(), FALSE );