class WpCli < Formula desc "Command-line interface for WordPress" homepage "https://wp-cli.org/" url "https://github.com/wp-cli/wp-cli/releases/download/v2.1.0/wp-cli-2.1.0.phar" sha256 "44f54cca06f9d87cdb2a55129bf3dbe468b224a7d9ac87e1620b075b2711bb28" bottle :unneeded def install bin.install "wp-cli-#{version}.phar" => "wp" end test do output = shell_output("#{bin}/wp core download --path=wptest") assert_match "Success: WordPress downloaded.", output end end