diff options
author | Zoe Slattery <zoe@php.net> | 2009-08-26 17:17:58 +0000 |
---|---|---|
committer | Zoe Slattery <zoe@php.net> | 2009-08-26 17:17:58 +0000 |
commit | 7effcd5f6c1cc2b1851bd0d5ef1ee06d89ba438a (patch) | |
tree | 036937e1cdb922ef28574653165cf8969f3e9e7b /ext/standard/tests/array/key_exists_basic.phpt | |
parent | 1a372313ca8e106b3816053ca9869282be01b6d1 (diff) | |
download | php-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.phpt | 15 |
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) |