helly           Fri Apr 15 14:53:42 2005 EDT

  Modified files:              
    /php-src/tests/classes      property_exists.phpt 
  Log:
  - Fix even though we already know that the function will be renamed
  
http://cvs.php.net/diff.php/php-src/tests/classes/property_exists.phpt?r1=1.1&r2=1.2&ty=u
Index: php-src/tests/classes/property_exists.phpt
diff -u php-src/tests/classes/property_exists.phpt:1.1 
php-src/tests/classes/property_exists.phpt:1.2
--- php-src/tests/classes/property_exists.phpt:1.1      Fri Apr  8 09:34:30 2005
+++ php-src/tests/classes/property_exists.phpt  Fri Apr 15 14:53:42 2005
@@ -9,6 +9,8 @@
        protected $b = 2;
        private   $c = 3;
        
+       public    $empty;
+       
        function __toString()
        {
                return 'obj(' . get_class($this) . ')';
@@ -74,10 +76,16 @@
        }
 }
 
+echo "===PROBLEMS===\n";
+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','empty'));
 ?>
 ===DONE===
 <?php exit(0); ?>
---EXPECT--
+--EXPECTF--
 ===A===
 obj(A)::$a
 bool(true)
@@ -188,4 +196,14 @@
 bool(false)
 obj(C)::$e
 bool(false)
+===PROBLEMS===
+
+Warning: First parameter must either be an object or the name of an existing 
class in %sproperty_exists.php on line %d
+NULL
+
+Warning: First parameter must either be an object or the name of an existing 
class in %sproperty_exists.php on line %d
+NULL
+bool(false)
+bool(false)
+bool(true)
 ===DONE===

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to