summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-04-17 20:33:20 +0000
committerMarcus Boerger <helly@php.net>2005-04-17 20:33:20 +0000
commit43a5cee728ac58e486d60af0b80c433b93c5ac56 (patch)
tree762f06d13d188c5e5753212ea2278997e006ac31
parent7aad424332a4c9edcfc5f16d937eb656e650b3f0 (diff)
downloadphp-git-43a5cee728ac58e486d60af0b80c433b93c5ac56.tar.gz
- Add more tests
-rwxr-xr-xext/reflection/tests/property_exists.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/reflection/tests/property_exists.phpt b/ext/reflection/tests/property_exists.phpt
index 75d3cc7400..fa712dfdbe 100755
--- a/ext/reflection/tests/property_exists.phpt
+++ b/ext/reflection/tests/property_exists.phpt
@@ -10,6 +10,7 @@ class A
private $c = 3;
public $empty;
+ public $init = 1;
function __toString()
{
@@ -81,7 +82,13 @@ var_dump(property_exists(NULL, 'empty'));
var_dump(property_exists(25,'empty'));
var_dump(property_exists('',''));
var_dump(property_exists('A',''));
+var_dump(property_exists('A','123'));
+var_dump(property_exists('A','init'));
var_dump(property_exists('A','empty'));
+var_dump(property_exists(new A, ''));
+var_dump(property_exists(new A, '123'));
+var_dump(property_exists(new A, 'init'));
+var_dump(property_exists(new A, 'empty'));
?>
===DONE===
<?php exit(0); ?>
@@ -205,5 +212,11 @@ Warning: First parameter must either be an object or the name of an existing cla
NULL
bool(false)
bool(false)
+bool(false)
+bool(true)
+bool(true)
+bool(false)
+bool(false)
+bool(true)
bool(true)
===DONE===