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

index bd6b6ced50ec01d4c4bef7608254977defdca357..5a74337a437653f6b0d003afea13e5492175fad1 100644 (file)
@@ -11,19 +11,19 @@ TEST_CASE("bin/memping") {
   SECTION("no servers provided") {
     string output;
     REQUIRE_FALSE(sh.run("memping", output));
-    REQUIRE(output == "No Servers provided\n");
+    REQUIRE(output == "No servers provided.\n");
   }
 
   SECTION("--help") {
     string output;
     REQUIRE(sh.run("memping --help", output));
-    REQUIRE_THAT(output, Contains("memping"));
-    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("memping 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") {