Created
August 5, 2012 19:27
-
-
Save nb/3266803 to your computer and use it in GitHub Desktop.
Sample plugin tests config files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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