summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/key_exists_basic.phpt
diff options
context:
space:
mode:
authorZoe Slattery <zoe@php.net>2009-08-26 17:17:58 +0000
committerZoe Slattery <zoe@php.net>2009-08-26 17:17:58 +0000
commit7effcd5f6c1cc2b1851bd0d5ef1ee06d89ba438a (patch)
tree036937e1cdb922ef28574653165cf8969f3e9e7b /ext/standard/tests/array/key_exists_basic.phpt
parent1a372313ca8e106b3816053ca9869282be01b6d1 (diff)
downloadphp-git-7effcd5f6c1cc2b1851bd0d5ef1ee06d89ba438a.tar.gz
Test from 2009 testfest
Diffstat (limited to 'ext/standard/tests/array/key_exists_basic.phpt')
-rw-r--r--ext/standard/tests/array/key_exists_basic.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/standard/tests/array/key_exists_basic.phpt b/ext/standard/tests/array/key_exists_basic.phpt
new file mode 100644
index 0000000000..40d982da21
--- /dev/null
+++ b/ext/standard/tests/array/key_exists_basic.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Test function key_exists() by calling it with its expected arguments
+--CREDITS--
+Francesco Fullone ff@ideato.it
+#PHPTestFest Cesena Italia on 2009-06-20
+--FILE--
+<?php
+echo "*** test key_exists() by calling it with its expected arguments ***\n";
+$a = array('bar' => 1);
+var_dump(key_exists('bar', $a));
+var_dump(key_exists('foo', $a));
+--EXPECTF--
+*** test key_exists() by calling it with its expected arguments ***
+bool(true)
+bool(false)