PHP Classes

File: vendor/wp-phpunit/wp-phpunit/wp-tests-config.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/wp-phpunit/wp-phpunit/wp-tests-config.php   Download  
File: vendor/wp-phpunit/wp-phpunit/wp-tests-config.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days ago
Size: 626 bytes
 

Contents

Class file image Download
<?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_';
}