summaryrefslogtreecommitdiff
path: root/ext/standard/tests/math/hypot_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/math/hypot_error.phpt')
-rw-r--r--ext/standard/tests/math/hypot_error.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/standard/tests/math/hypot_error.phpt b/ext/standard/tests/math/hypot_error.phpt
new file mode 100644
index 000000000..19a9ee085
--- /dev/null
+++ b/ext/standard/tests/math/hypot_error.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Test hypot() - wrong params test hypot()
+--INI--
+precision=14
+--FILE--
+<?php
+hypot();
+hypot(36);
+hypot(36,25,0);
+?>
+--EXPECTF--
+
+
+Warning: Wrong parameter count for hypot() in %s on line 2
+
+Warning: Wrong parameter count for hypot() in %s on line 3
+
+Warning: Wrong parameter count for hypot() in %s on line 4