summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-10 22:17:59 +0000
committerFelipe Pena <felipe@php.net>2008-03-10 22:17:59 +0000
commit9324869ef5533e619f1f59f642aa54f7a3cb6187 (patch)
tree262ffa1d0c91386ca1608c02ea8ea90ff157ad8a
parent84a8bb038a26e254d6608662b16c254920388913 (diff)
downloadphp-git-9324869ef5533e619f1f59f642aa54f7a3cb6187.tar.gz
Fix tests (new error message for void parameters)
-rw-r--r--Zend/tests/017.phpt4
-rw-r--r--ext/standard/tests/file/clearstatcache_error.phpt2
-rw-r--r--ext/standard/tests/file/get_current_user.phpt2
-rw-r--r--ext/standard/tests/general_functions/rand.phpt4
-rw-r--r--ext/standard/tests/math/getrandmax_error.phpt2
-rw-r--r--ext/standard/tests/math/mt_getrandmax_error.phpt2
-rw-r--r--ext/xmlwriter/tests/bug41326.phpt2
7 files changed, 9 insertions, 9 deletions
diff --git a/Zend/tests/017.phpt b/Zend/tests/017.phpt
index 9ed7732765..a7c6296eb5 100644
--- a/Zend/tests/017.phpt
+++ b/Zend/tests/017.phpt
@@ -66,12 +66,12 @@ string(5) "array"
string(5) "array"
int(%d)
-Warning: Wrong parameter count for get_defined_functions() in %s on line %d
+Warning: get_defined_functions() expects exactly 0 parameters, 1 given in %s on line %d
NULL
string(5) "array"
int(%d)
-Warning: Wrong parameter count for get_declared_interfaces() in %s on line %d
+Warning: get_declared_interfaces() expects exactly 0 parameters, 1 given in %s on line %d
NULL
string(5) "array"
int(%d)
diff --git a/ext/standard/tests/file/clearstatcache_error.phpt b/ext/standard/tests/file/clearstatcache_error.phpt
index 77a97499b1..1ebb08888e 100644
--- a/ext/standard/tests/file/clearstatcache_error.phpt
+++ b/ext/standard/tests/file/clearstatcache_error.phpt
@@ -14,6 +14,6 @@ echo "*** Done ***\n";
--EXPECTF--
*** Testing clearstatcache() function: error conditions ***
-Warning: Wrong parameter count for clearstatcache() in %s on line %d
+Warning: clearstatcache() expects exactly 0 parameters, 1 given in %s on line %d
NULL
*** Done ***
diff --git a/ext/standard/tests/file/get_current_user.phpt b/ext/standard/tests/file/get_current_user.phpt
index 7c721303d0..b67195b629 100644
--- a/ext/standard/tests/file/get_current_user.phpt
+++ b/ext/standard/tests/file/get_current_user.phpt
@@ -9,7 +9,7 @@ var_dump(get_current_user());
echo "Done\n";
?>
--EXPECTF--
-Warning: Wrong parameter count for get_current_user() in %s on line %d
+Warning: get_current_user() expects exactly 0 parameters, 1 given in %s on line %d
NULL
string(%d) %s
Done
diff --git a/ext/standard/tests/general_functions/rand.phpt b/ext/standard/tests/general_functions/rand.phpt
index e75bd6d374..e3ad8ded22 100644
--- a/ext/standard/tests/general_functions/rand.phpt
+++ b/ext/standard/tests/general_functions/rand.phpt
@@ -54,10 +54,10 @@ Warning: mt_srand() expects parameter 1 to be long, array given in %s on line %d
NULL
int(%d)
-Warning: Wrong parameter count for getrandmax() in %s on line %d
+Warning: getrandmax() expects exactly 0 parameters, 1 given in %s on line %d
NULL
int(%d)
-Warning: Wrong parameter count for mt_getrandmax() in %s on line %d
+Warning: mt_getrandmax() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Done
diff --git a/ext/standard/tests/math/getrandmax_error.phpt b/ext/standard/tests/math/getrandmax_error.phpt
index 9f244a2a6a..6cc87ff468 100644
--- a/ext/standard/tests/math/getrandmax_error.phpt
+++ b/ext/standard/tests/math/getrandmax_error.phpt
@@ -5,5 +5,5 @@ Test getrandmax() - wrong params test getrandmax()
var_dump($biggest_int = getrandmax(true));
?>
--EXPECTF--
-Warning: Wrong parameter count for getrandmax() in %s on line 2
+Warning: getrandmax() expects exactly 0 parameters, 1 given in %s on line 2
NULL
diff --git a/ext/standard/tests/math/mt_getrandmax_error.phpt b/ext/standard/tests/math/mt_getrandmax_error.phpt
index b30da3a91c..fc6adb82ef 100644
--- a/ext/standard/tests/math/mt_getrandmax_error.phpt
+++ b/ext/standard/tests/math/mt_getrandmax_error.phpt
@@ -5,5 +5,5 @@ Test mt_getrandmax() - wrong paramas mt_getrandmax()
var_dump(mt_getrandmax(true));
?>
--EXPECTF--
-Warning: Wrong parameter count for mt_getrandmax() in %s on line 2
+Warning: mt_getrandmax() expects exactly 0 parameters, 1 given in %s on line 2
NULL \ No newline at end of file
diff --git a/ext/xmlwriter/tests/bug41326.phpt b/ext/xmlwriter/tests/bug41326.phpt
index 9c154bfd39..c69cab1795 100644
--- a/ext/xmlwriter/tests/bug41326.phpt
+++ b/ext/xmlwriter/tests/bug41326.phpt
@@ -37,7 +37,7 @@ $xw->endDocument();
print $xw->flush(true);
?>
--EXPECTF--
-Warning: Wrong parameter count for XMLWriter::endElement() in %s on line %d
+Warning: XMLWriter::endElement() expects exactly 0 parameters, 1 given in %s on line %d
<?xml version="1.0"?>
<test>
<foo/>