FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
wp-phpunit/wp-tests-config.php at master · wp-headless/wp-phpunit · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
wp-headless
/
wp-phpunit
Public
forked from
wp-phpunit/wp-phpunit
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
wp-phpunit
/
wp-tests-config.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (20 loc) · 626 Bytes
Breadcrumbs
wp-phpunit
/
wp-tests-config.php
Copy path
File metadata and controls
22 lines (20 loc) · 626 Bytes
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
<?php
/**
* DO NOT EDIT THIS FILE
*
* Define the path to your wp-tests-config.php using the WP_PHPUNIT__TESTS_CONFIG environment variable.
*/
/**
* Load the real wp-tests-config.php, wherever it may be.
*/
if
(
file_exists
(
getenv
(
'
WP_PHPUNIT__TESTS_CONFIG
'
) ) ) {
require
getenv
(
'
WP_PHPUNIT__TESTS_CONFIG
'
);
}
/**
* $table_prefix must be defined as a local variable here as expected by the library's bootstrap.php.
*/
if
(
false
!==
getenv
(
'
WP_PHPUNIT__TABLE_PREFIX
'
) ) {
$
table_prefix
=
getenv
(
'
WP_PHPUNIT__TABLE_PREFIX
'
);
}
elseif
( !
isset
(
$
table_prefix
) ) {
$
table_prefix
=
'
wptests_
'
;
}
Back
|
FazBrowse Home
|
New Git URL