FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
phalcon-devtools/tests/_bootstrap.php at master · MESSDEV/phalcon-devtools · GitHub
MESSDEV
/
phalcon-devtools
Public
forked from
phalcon/phalcon-devtools
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
phalcon-devtools
/
tests
/
_bootstrap.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
61 lines (47 loc) · 1.77 KB
Breadcrumbs
phalcon-devtools
/
tests
/
_bootstrap.php
Copy path
File metadata and controls
61 lines (47 loc) · 1.77 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
error_reporting
(-
1
);
ini_set
(
'
display_errors
'
,
1
);
ini_set
(
'
display_startup_errors
'
,
1
);
setlocale
(
LC_ALL
,
'
en_US.utf-8
'
);
date_default_timezone_set
(
'
UTC
'
);
if
(
function_exists
(
'
mb_internal_encoding
'
)) {
mb_internal_encoding
(
'
utf-8
'
);
}
if
(
function_exists
(
'
mb_substitute_character
'
)) {
mb_substitute_character
(
'
none
'
);
}
clearstatcache
();
$
root
=
realpath
(
dirname
(
__FILE__
)) .
DIRECTORY_SEPARATOR
;
defined
(
'
TESTS_PATH
'
) ||
define
(
'
TESTS_PATH
'
,
$
root
);
defined
(
'
PROJECT_PATH
'
) ||
define
(
'
PROJECT_PATH
'
,
dirname
(
TESTS_PATH
) .
DIRECTORY_SEPARATOR
);
defined
(
'
PATH_DATA
'
) ||
define
(
'
PATH_DATA
'
,
$
root
.
'
_data
'
.
DIRECTORY_SEPARATOR
);
defined
(
'
PATH_CACHE
'
) ||
define
(
'
PATH_CACHE
'
,
$
root
.
'
_cache
'
.
DIRECTORY_SEPARATOR
);
defined
(
'
PATH_OUTPUT
'
) ||
define
(
'
PATH_OUTPUT
'
,
$
root
.
'
_output
'
.
DIRECTORY_SEPARATOR
);
defined
(
'
PATH_FIXTURES
'
)||
define
(
'
PATH_FIXTURES
'
,
$
root
.
'
_fixtures
'
.
DIRECTORY_SEPARATOR
);
unset(
$
root
);
require_once
PROJECT_PATH
.
'
vendor/autoload.php
'
;
require_once
TESTS_PATH
.
'
shim.php
'
;
if
(
extension_loaded
(
'
xdebug
'
)) {
ini_set
(
'
xdebug.cli_color
'
,
1
);
ini_set
(
'
xdebug.collect_params
'
,
0
);
ini_set
(
'
xdebug.dump_globals
'
,
'
on
'
);
ini_set
(
'
xdebug.show_local_vars
'
,
'
on
'
);
ini_set
(
'
xdebug.max_nesting_level
'
,
100
);
ini_set
(
'
xdebug.var_display_max_depth
'
,
4
);
}
$
defaults
= [
// Postgresql
"
TEST_DB_POSTGRESQL_HOST
"
=>
'
127.0.0.1
'
,
"
TEST_DB_POSTGRESQL_PORT
"
=>
5432
,
"
TEST_DB_POSTGRESQL_USER
"
=>
'
postgres
'
,
"
TEST_DB_POSTGRESQL_PASSWD
"
=>
''
,
"
TEST_DB_POSTGRESQL_NAME
"
=>
'
devtools
'
,
"
TEST_DB_POSTGRESQL_SCHEMA
"
=>
'
public
'
,
];
foreach
(
$
defaults
as
$
key
=>
$
defaultValue
) {
if
(
defined
(
$
key
)) {
continue
;
}
$
value
=
getenv
(
$
key
) ?:
$
defaultValue
;
define
(
$
key
,
$
value
);
}
Back
|
FazBrowse Home
|
New Git URL