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.3.0/wp-cli-2.3.0.phar" sha256 "3c5edf945846f650846b973a22645823c7f5e00b0e393f921397d26ee11f3770" 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