# mailchimp/1.5.3/tests/bootstrap.php

Mailchimp List Subscribe Form, version 1.5.3. 26 lines.

- Page: https://pluginprobe.com/plugins/mailchimp/1.5.3/code/tests/bootstrap.php
- Raw: https://pluginprobe.com/plugins/mailchimp/1.5.3/raw/tests/bootstrap.php
- Modified: 2016-11-01T13:31:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/mailchimp/1.5.3/code/tests/bootstrap.php#L10-L20`.

```php
<?php
/**
 * PHPUnit bootstrap file
 *
 * @package mailchimp
 */

$_tests_dir = getenv( 'WP_TESTS_DIR' );
if ( ! $_tests_dir ) {
	$_tests_dir = '/tmp/wordpress-tests-lib';
}

// Give access to tests_add_filter() function.
require_once $_tests_dir . '/includes/functions.php';

/**
 * Manually load the plugin being tested.
 */
function _manually_load_plugin() {
	require dirname( dirname( __FILE__ ) ) . '/mailchimp.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );

// Start up the WP testing environment.
require $_tests_dir . '/includes/bootstrap.php';

```
