Internalize WP-CLI testing framework

See https://github.com/wp-cli/wp-cli/pull/1309