bin: consolidate clients
authorMichael Wallner <mike@php.net>
Tue, 17 Nov 2020 19:46:20 +0000 (20:46 +0100)
committerMichael Wallner <mike@php.net>
Tue, 17 Nov 2020 19:46:20 +0000 (20:46 +0100)
test/tests/bin/memflush.cpp

index b512b8e2c9b2afb424c52763a4cb2f744e483275..1b29b9d99569224765ca11de1443bcec626652df 100644 (file)
@@ -12,19 +12,19 @@ TEST_CASE("bin/memflush") {
   SECTION("no servers provided") {
     string output;
     REQUIRE_FALSE(sh.run("memflush", output));
-    REQUIRE(output == "No Servers provided\n");
+    REQUIRE(output == "No servers provided.\n");
   }
 
   SECTION("--help") {
     string output;
     REQUIRE(sh.run("memflush --help", output));
-    REQUIRE_THAT(output, Contains("memflush"));
-    REQUIRE_THAT(output, Contains("v1"));
-    REQUIRE_THAT(output, Contains("help"));
-    REQUIRE_THAT(output, Contains("version"));
-    REQUIRE_THAT(output, Contains("option"));
-    REQUIRE_THAT(output, Contains("--"));
-    REQUIRE_THAT(output, Contains("="));
+    REQUIRE_THAT(output, Contains("memflush v1"));
+    REQUIRE_THAT(output, Contains("Usage:"));
+    REQUIRE_THAT(output, Contains("Options:"));
+    REQUIRE_THAT(output, Contains("-h|--help"));
+    REQUIRE_THAT(output, Contains("-V|--version"));
+    REQUIRE_THAT(output, Contains("Environment:"));
+    REQUIRE_THAT(output, Contains("MEMCACHED_SERVERS"));
   }
 
   SECTION("with server") {