cvs: php-src /tests/classes property_exists.phpt
| From: | Marcus Boerger | Date: | Sun, 17 Apr 2005 20:33:21 +0000 |
| Subject: | cvs: php-src /tests/classes property_exists.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-31450@lists.php.net to get a copy of this message | ||
helly Sun Apr 17 16:33:21 2005 EDT
Modified files:
/php-src/tests/classes property_exists.phpt
Log:
- Add more tests
http://cvs.php.net/diff.php/php-src/tests/classes/property_exists.phpt?r1=1.2&r2=1.3&ty=u
Index: php-src/tests/classes/property_exists.phpt
diff -u php-src/tests/classes/property_exists.phpt:1.2
php-src/tests/classes/property_exists.phpt:1.3
--- php-src/tests/classes/property_exists.phpt:1.2 Fri Apr 15 14:53:42 2005
+++ php-src/tests/classes/property_exists.phpt Sun Apr 17 16:33:20 2005
@@ -10,6 +10,7 @@
private $c = 3;
public $empty;
+ public $init = 1;
function __toString()
{
@@ -81,7 +82,13 @@
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 @@
NULL
bool(false)
bool(false)
+bool(false)
+bool(true)
+bool(true)
+bool(false)
+bool(false)
+bool(true)
bool(true)
===DONE===