longOptions ) ); $ajax_message = true; foreach ( $options[0] as $option ) { switch ( $option[0] ) { case '--exclude-group' : $ajax_message = false; continue 2; case '--group' : $groups = explode( ',', $option[1] ); foreach ( $groups as $group ) { if ( is_numeric( $group ) || preg_match( '/^(UT|Plugin)\d+$/', $group ) ) WP_UnitTestCase::forceTicket( $group ); } $ajax_message = ! in_array( 'ajax', $groups ); continue 2; } } if ( $ajax_message ) echo "Not running ajax tests... To execute these, use --group ajax." . PHP_EOL; } } new WP_PHPUnit_TextUI_Command( $_SERVER['argv'] );