]> granicus.if.org Git - php/commitdiff
- Tests for parsing parameter api
authorDavid Coallier <davidc@php.net>
Tue, 24 Jun 2008 22:51:57 +0000 (22:51 +0000)
committerDavid Coallier <davidc@php.net>
Tue, 24 Jun 2008 22:51:57 +0000 (22:51 +0000)
ext/standard/tests/strings/fprintf_error.phpt
ext/standard/tests/strings/printf.phpt
ext/standard/tests/strings/sprintf_error.phpt
ext/standard/tests/strings/vsprintf_error.phpt

index cd6468bba609d9fee865b750766bc81c750a93b7..5fe3ff144228fa7335f8d4b27e51b7157fca0d8b 100644 (file)
@@ -20,12 +20,12 @@ echo "Done\n";
 --EXPECTF--
 *** Testing Error Conditions ***
 
-Warning: Wrong parameter count for fprintf() in %s on line %d
+Warning: fprintf() expects at least %d parameters, %d given in %s on line %d
 NULL
 
-Warning: Wrong parameter count for fprintf() in %s on line %d
+Warning: fprintf() expects at least %d parameters, %d given in %s on line %d
 NULL
 
-Warning: Wrong parameter count for fprintf() in %s on line %d
+Warning: fprintf() expects at least %d parameters, %d given in %s on line %d
 NULL
 Done
index 13a8ed0713105299e79b5867262a1c9cf0dcfb05..6474bdd84101e48f32e28f27b500da0dadade52b 100755 (executable)
@@ -227,7 +227,7 @@ printf("%d", $tempstring);
 --EXPECTF--
 *** Output for zero argument ***
 
-Warning: Wrong parameter count for printf() in %s on line %d
+Warning: printf() expects at least %d parameter, %d given in %s on line %d
 
 *** Output for insufficient number of arguments ***
 
index 1200ab27a689b8d95c6c53e7b103a6c21960c092..f7f9e37e7704f617e8cbfe3dd49245527d509060 100644 (file)
@@ -39,7 +39,7 @@ echo "Done";
 
 -- Testing sprintf() function with Zero arguments --
 
-Warning: Wrong parameter count for sprintf() in %s on line %d
+Warning: sprintf() expects at least %d parameter, %d given in %s on line %d
 bool(false)
 
 -- Testing sprintf() function with less than expected no. of arguments --
index 0ece4a420f0a44cc419c045e99b823005f82e35b..8d581474b402cd1f9ef6eb6e784bca89d5f946e9 100644 (file)
@@ -31,7 +31,7 @@ echo "Done";
 
 -- Testing vsprintf() function with Zero arguments --
 
-Warning: Wrong parameter count for vsprintf() in %s on line %d
+Warning: vsprintf() expects at least %d parameter, %d given in %s on line %d
 bool(false)
 
 -- Testing vsprintf() function with less than expected no. of arguments --