-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpunit-bootstrap.php
28 lines (27 loc) · 1.13 KB
/
phpunit-bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
// For composer
require_once 'vendor/autoload.php';
/**
* You can overwrite GOODBY_IMMUTABLE_DATETIME_TEST_DB_* by `export` command.
* @see http://manpages.ubuntu.com/manpages/hardy/man5/exports.5.html
*
* Example:
*
* ```
* export GOODBY_IMMUTABLE_DATETIME_TEST_DB_USER=alice
* export GOODBY_IMMUTABLE_DATETIME_TEST_DB_PASS=passwd
* phpunit
* ```
*/
if ( isset($_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_HOST']) === false ) {
$_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_HOST'] = $_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_HOST_DEFAULT'];
}
if ( isset($_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_NAME']) === false ) {
$_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_NAME'] = $_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_NAME_DEFAULT'];
}
if ( isset($_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_USER']) === false ) {
$_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_USER'] = $_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_USER_DEFAULT'];
}
if ( isset($_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_PASS']) === false ) {
$_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_PASS'] = $_SERVER['GOODBY_IMMUTABLE_DATETIME_TEST_DB_PASS_DEFAULT'];
}