Skip to content
Snippets Groups Projects
Select Git revision
  • c07f18d119252bcd5d038e9b37c65e3da27659fb
  • master default protected
  • fix/woo-stubs-dir
  • default-packages
  • use-internal-packages
  • update-setup
  • feature/wpdesk-cs
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3
  • 2.2.1
  • 2.2
  • 2.1
  • 2.0
  • 1.10.15
  • 1.10.12
  • 1.10.8
  • 1.10.7
  • 1.10.6
  • 1.10.5
  • 1.10.3
  • 1.10.2
27 results

phpstan.neon.dist

Blame
  • bootstrap.php 802 B
    <?php
    // disable xdebug backtrace
    if ( function_exists( 'xdebug_disable' ) ) {
    	xdebug_disable();
    }
    
    if ( getenv( 'DEPENDENT_PLUGINS_DIR' ) !== false ) {
    	define( 'DEPENDENT_PLUGINS_DIR', getenv( 'DEPENDENT_PLUGINS_DIR' ) );
    } else {
    	define( 'DEPENDENT_PLUGINS_DIR', '/tmp/plugins' );
    }
    
    
    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' );
    
    tests_add_filter( 'muplugins_loaded', function () {
    }, 100 );
    
    putenv('WP_TESTS_DIR=' . getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit');
    require_once( getenv( 'WC_DEVELOP_DIR' ) . '/tests/bootstrap.php' );