summaryrefslogtreecommitdiff
path: root/ext/standard/tests/math/getrandmax_error.phpt
diff options
context:
space:
mode:
authorZoe Slattery <zoe@php.net>2008-02-06 08:39:23 +0000
committerZoe Slattery <zoe@php.net>2008-02-06 08:39:23 +0000
commit4da92843b9adc6a8bd9ec63fa4602a6fc818b8dc (patch)
treec3388fef77c4ec2629d9f0638e36e8eb49604499 /ext/standard/tests/math/getrandmax_error.phpt
parentb50f869aac4d37dc9f754151b4ab0272f8a4b9cb (diff)
downloadphp-git-4da92843b9adc6a8bd9ec63fa4602a6fc818b8dc.tar.gz
Tests for assorted Maths functions
Diffstat (limited to 'ext/standard/tests/math/getrandmax_error.phpt')
-rw-r--r--ext/standard/tests/math/getrandmax_error.phpt9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/standard/tests/math/getrandmax_error.phpt b/ext/standard/tests/math/getrandmax_error.phpt
new file mode 100644
index 0000000000..9f244a2a6a
--- /dev/null
+++ b/ext/standard/tests/math/getrandmax_error.phpt
@@ -0,0 +1,9 @@
+--TEST--
+Test getrandmax() - wrong params test getrandmax()
+--FILE--
+<?php
+var_dump($biggest_int = getrandmax(true));
+?>
+--EXPECTF--
+Warning: Wrong parameter count for getrandmax() in %s on line 2
+NULL