Skip to content

Commit

Permalink
Merge pull request #14 from wp-cli/add-missing-bootstrap-constants
Browse files Browse the repository at this point in the history
Add missing bootstrap constants WP_CLI and WP_CLI_VERSION
  • Loading branch information
schlessera authored Aug 6, 2018
2 parents 0d98561 + a17e789 commit a0add83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
define( 'WP_CLI', true );
define( 'WP_CLI_TESTS_ROOT', dirname( __DIR__ ) );
define( 'VENDOR_DIR',
file_exists( WP_CLI_TESTS_ROOT . '/vendor/autoload.php' )
Expand All @@ -7,6 +8,7 @@
);
define( 'WP_CLI_ROOT', VENDOR_DIR . '/wp-cli/wp-cli' );
define( 'PACKAGE_ROOT', VENDOR_DIR . '/..' );
define( 'WP_CLI_VERSION', trim( file_get_contents( WP_CLI_ROOT . '/VERSION' ) ) );

/**
* Compatibility with PHPUnit 6+
Expand Down

0 comments on commit a0add83

Please sign in to comment.