Skip to content

Instantly share code, notes, and snippets.

@paulgibbs
Created April 17, 2019 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulgibbs/a2f46643ab65fd93bd4359150cd2585b to your computer and use it in GitHub Desktop.
Save paulgibbs/a2f46643ab65fd93bd4359150cd2585b to your computer and use it in GitHub Desktop.
<?php
/**
* Hello World.
*/
namespace HelloWorld;
$_tests_dir = getenv( 'WP_TESTS_DIR' ) ?: getenv( 'WP_PHPUNIT__DIR' );
require_once $_tests_dir . '/includes/functions.php';
tests_add_filter( 'muplugins_loaded', function() use ( $_root_dir ) {
// Do things...
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment