Skip to content
Snippets Groups Projects
Select Git revision
  • ae6238306feb561c200b2a6d0c93e689e0088038
  • master default protected
  • bugfix/wordpress-review
  • bugfix/prevent-error-notice
  • remove-arrow
  • feature/update-message
  • feature/minimum-plugin-version-check-demo1
  • feature/plugin-name
  • 3.7.1
  • 3.7.0
  • 3.6.3
  • 3.6.2
  • 3.6.1
  • 3.6.0
  • 3.6.0-beta3
  • 3.6.0-beta2
  • 3.6.0-beta1
  • 3.5.2
  • 3.5.1
  • 3.5.0
  • 3.4.0
  • 3.3.0
  • 3.2.8
  • 3.2.7
  • 3.2.6
  • 3.2.5
  • 3.2.4
  • 3.2.3
28 results

bootstrap.php

Blame
  • bootstrap.php 558 B
    <?php
    // disable xdebug backtrace
    if ( function_exists( 'xdebug_disable' ) ) {
    	xdebug_disable();
    }
    
    if ( getenv( 'PLUGIN_PATH' ) !== false ) {
    	define( 'PLUGIN_PATH', getenv( 'PLUGIN_PATH' ) );
    } else {
    	define( 'PLUGIN_PATH', __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR );
    }
    
    require_once( getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit/includes/functions.php' );
    
    putenv('WP_TESTS_DIR=' . getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit');
    require_once( getenv( 'WC_DEVELOP_DIR' ) . '/tests/legacy/bootstrap.php' );