Skip to content
Snippets Groups Projects
Select Git revision
  • df75cf06220fc51018ba0c609b6d51eaefe21385
  • master default protected
  • bugfix/vendor-excluded
  • feature/phpcs-editorconfig
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.8
  • 1.2.7
  • 1.2.6
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
  • 1.2.0
  • 1.1.0
  • 1.1.0-beta1
  • 1.0.1
  • 1.0.0
  • 1.0.0-beta8
  • 1.0.0-beta7
  • 1.0.0-beta6
  • 1.0.0-beta5
24 results

bootstrap.php

Blame
  • bootstrap.php 586 B
    <?php
    /**
     * PHPUnit bootstrap file
     */
    
    require_once __DIR__ . '/../../vendor/autoload.php';
    
    error_reporting( E_ALL );
    
    if ( getenv( 'PLUGIN_PATH' ) !== false ) {
    	define( 'PLUGIN_PATH', getenv( 'PLUGIN_PATH' ) );
    } else {
    	define( 'PLUGIN_PATH', __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR );
    }
    
    if ( getenv( 'ABSPATH' ) !== false ) {
    	define( 'ABSPATH', getenv( 'ABSPATH' ) );
    } else {
    	define( 'ABSPATH', PLUGIN_PATH . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR );
    }
    
    WP_Mock::setUsePatchwork( true );
    WP_Mock::bootstrap();