tests: be more elaborate about what was expected
authorMichael Wallner <mike@php.net>
Thu, 2 Mar 2023 11:25:27 +0000 (12:25 +0100)
committerMichael Wallner <mike@php.net>
Thu, 2 Mar 2023 11:25:27 +0000 (12:25 +0100)
test/lib/ReturnMatcher.cpp

index 926214e74a829a998e9106e18708af7860c92650..7a073f29120186a5147af10bfa6fdace47087912 100644 (file)
@@ -24,7 +24,7 @@ ReturnMatcher &ReturnMatcher::operator=(memcached_st *memc_) {
 }
 
 string ReturnMatcher::describe() const {
-  return "is " + to_string(expected)
-         + "\n  actual: " + memcached_last_error_message(memc);
+  return "// but '" + to_string(expected) + "' was expected\n"
+         + "last error: " + memcached_last_error_message(memc);
 }