summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/array_push_error1.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-06 11:23:38 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-03-06 13:40:22 +0100
commit8c62c69265817bfd736ac77745cf7686a48d280c (patch)
tree7776624d2cf5bce5093afe82886fae1bc398c0a4 /ext/standard/tests/array/array_push_error1.phpt
parentdb777e9199a94f95416ea16baf82a7d10a0bbe51 (diff)
downloadphp-git-8c62c69265817bfd736ac77745cf7686a48d280c.tar.gz
More zpp error/variation test removals
Some of these tests also check non-zpp conditions -- however, there is always some other test that also checks those error conditions.
Diffstat (limited to 'ext/standard/tests/array/array_push_error1.phpt')
-rw-r--r--ext/standard/tests/array/array_push_error1.phpt29
1 files changed, 0 insertions, 29 deletions
diff --git a/ext/standard/tests/array/array_push_error1.phpt b/ext/standard/tests/array/array_push_error1.phpt
deleted file mode 100644
index 163c0984eb..0000000000
--- a/ext/standard/tests/array/array_push_error1.phpt
+++ /dev/null
@@ -1,29 +0,0 @@
---TEST--
-Test array_push() function : error conditions - Pass incorrect number of args
---FILE--
-<?php
-/* Prototype : int array_push(array $stack[, mixed $...])
- * Description: Pushes elements onto the end of the array
- * Source code: ext/standard/array.c
- */
-
-/*
- * Pass incorrect number of arguments to array_push() to test behaviour
- */
-
-echo "*** Testing array_push() : error conditions ***\n";
-
-// Testing array_push with one less than the expected number of arguments
-echo "\n-- Testing array_push() function with less than expected no. of arguments --\n";
-var_dump( array_push() );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing array_push() : error conditions ***
-
--- Testing array_push() function with less than expected no. of arguments --
-
-Warning: array_push() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-Done