diff --git a/sapi/cgi/tests/006.phpt b/sapi/cgi/tests/006.phpt
index f0a6ee9c133..107ddc7747f 100644
--- a/sapi/cgi/tests/006.phpt
+++ b/sapi/cgi/tests/006.phpt
@@ -54,7 +54,7 @@ string(%d) "No syntax errors detected in %s006.test.php
string(%d) "No input file specified.
"
string(%d) "
-Parse error: syntax error, unexpected T_PRIVATE, expecting '{' in %s006.test.php on line 5
+Parse error: %s expecting %s{%s in %s006.test.php on line 5
Errors parsing %s006.test.php
"
Done