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.0.1/wp-cli-2.0.1.phar" sha256 "8f5da1c6efdb1d1116b3c01d15be82635e92a4680892bd8b21e710c088578b16" 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