cvs: pear /PHP_Compat/tests/function property_exists.phpt

From: Date: Mon, 02 Jan 2006 11:22:48 +0000
Subject: cvs: pear /PHP_Compat/tests/function property_exists.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-37243@lists.php.net to get a copy of this message
arpad Mon Jan 2 11:22:48 2006 UTC Modified files: /pear/PHP_Compat/tests/function property_exists.phpt Log: tests presence/absence, no visibility http://cvs.php.net/viewcvs.cgi/pear/PHP_Compat/tests/function/property_exists.phpt?r1=1.3&r2=1.4&diff_format=u Index: pear/PHP_Compat/tests/function/property_exists.phpt diff -u pear/PHP_Compat/tests/function/property_exists.phpt:1.3 pear/PHP_Compat/tests/function/property_exists.phpt:1.4 --- pear/PHP_Compat/tests/function/property_exists.phpt:1.3 Mon Dec 19 23:50:26 2005 +++ pear/PHP_Compat/tests/function/property_exists.phpt Mon Jan 2 11:22:48 2006 @@ -4,7 +4,19 @@ <?php require_once 'PHP/Compat/Function/property_exists.php'; -echo 'test'; +class Foo { + var $bar = 'baz'; +} +$foo = new Foo; +class Bar extends Foo {} +$bar = new Bar; + +var_dump(property_exists($foo, 'bar')); +var_dump(property_exists($bar, 'bar')); +var_dump(property_exists($foo, 'baz')); + ?> --EXPECT-- -test \ No newline at end of file +bool(true) +bool(true) +bool(false)

« previous php.pear.cvs (#37243) next »