Skip to content

Instantly share code, notes, and snippets.

@nb
Created August 5, 2012 19:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nb/3266803 to your computer and use it in GitHub Desktop.
Save nb/3266803 to your computer and use it in GitHub Desktop.
Sample plugin tests config files
<?php
define( 'WP_TESTS_PATH', '<Enter the path to your unit-tests checkout>' );
$GLOBALS['wp_tests_options'] = array(
'active_plugins' => array( '<plugindir/<plugin>.php' ),
);
require rtrim( WP_TESTS_PATH, DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR . 'bootstrap.php';
<phpunit
bootstrap="./bootstrap.php"
backupGlobals="false"
colors="true"
></phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment