Esempio n. 1
0
}
if (!class_exists('RGForms')) {
    require GRAVITYFORMS_BASE_PATH . 'gravityforms.php';
}
//require ABSPATH . 'wp-content/plugins/gravityflow/gravityflow.php';
require dirname(__FILE__) . '/testcase.php';
require dirname(__FILE__) . '/gravityforms-testcase.php';
require dirname(__FILE__) . '/testcase-xmlrpc.php';
require dirname(__FILE__) . '/testcase-ajax.php';
require dirname(__FILE__) . '/exceptions.php';
require dirname(__FILE__) . '/utils.php';
// Update array with plugins to include ...
$plugins_to_active = array('gravityforms/gravityforms.php', 'gravityflow/gravityflow.php');
update_option('active_plugins', $plugins_to_active);
GFForms::setup(true);
GFForms::loaded();
gravity_flow()->setup();
/**
 * A child class of the PHP test runner.
 *
 * Not actually used as a runner. Rather, used to access the protected
 * longOptions property, to parse the arguments passed to the script.
 *
 * If it is determined that phpunit was called with a --group that corresponds
 * to an @ticket annotation (such as `phpunit --group 12345` for bugs marked
 * as #WP12345), then it is assumed that known bugs should not be skipped.
 *
 * If WP_TESTS_FORCE_KNOWN_BUGS is already set in wp-tests-config.php, then
 * how you call phpunit has no effect.
 */
class WP_PHPUnit_TextUI_Command extends PHPUnit_TextUI_Command