wharmby         Mon Jun 29 07:45:11 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/reflection/tests       bug46064_2.phpt bug46064.phpt 
  Log:
  Fix tests
  
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/bug46064_2.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/reflection/tests/bug46064_2.phpt
diff -u php-src/ext/reflection/tests/bug46064_2.phpt:1.1.2.2 
php-src/ext/reflection/tests/bug46064_2.phpt:1.1.2.3
--- php-src/ext/reflection/tests/bug46064_2.phpt:1.1.2.2        Wed Oct 29 
12:56:29 2008
+++ php-src/ext/reflection/tests/bug46064_2.phpt        Mon Jun 29 07:45:11 2009
@@ -36,14 +36,15 @@
 new test;
 
 ?>
---EXPECT--
-object(ReflectionProperty)#3 (2) {
+===DONE===
+--EXPECTF--
+object(ReflectionProperty)#%d (2) {
   ["name"]=>
   string(4) "test"
   ["class"]=>
   string(3) "foo"
 }
-object(ReflectionProperty)#5 (2) {
+object(ReflectionProperty)#%d (2) {
   ["name"]=>
   string(1) "a"
   ["class"]=>
@@ -56,17 +57,18 @@
 bool(false)
 array(2) {
   [0]=>
-  &object(ReflectionProperty)#6 (2) {
+  &object(ReflectionProperty)#%d (2) {
     ["name"]=>
     string(1) "b"
     ["class"]=>
     string(4) "test"
   }
   [1]=>
-  &object(ReflectionProperty)#7 (2) {
+  &object(ReflectionProperty)#%d (2) {
     ["name"]=>
     string(1) "a"
     ["class"]=>
     string(4) "test"
   }
 }
+===DONE===
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/bug46064.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/reflection/tests/bug46064.phpt
diff -u php-src/ext/reflection/tests/bug46064.phpt:1.1.2.2 
php-src/ext/reflection/tests/bug46064.phpt:1.1.2.3
--- php-src/ext/reflection/tests/bug46064.phpt:1.1.2.2  Wed Oct 29 12:56:28 2008
+++ php-src/ext/reflection/tests/bug46064.phpt  Mon Jun 29 07:45:11 2009
@@ -37,10 +37,6 @@
                $this->foobar = 2;
                $this->a = 200;
                
-               $p = new reflectionproperty($this, 'a');
-               $p->setAccessible(true);
-               var_dump($p->getValue($this), $p->isDefault(), $p->isPublic());
-               
                $p = new reflectionproperty($this, 'foobar');
                var_dump($p->getValue($this), $p->isDefault(), $p->isPublic());
        }
@@ -49,8 +45,9 @@
 new bar;
 
 ?>
+===DONE===
 --EXPECTF--
-object(ReflectionProperty)#2 (2) {
+object(ReflectionProperty)#%d (2) {
   ["name"]=>
   string(1) "z"
   ["class"]=>
@@ -67,15 +64,13 @@
 int(1000)
 ---------------------------
 string(30) "Property x::$zz does not exist"
-object(ReflectionProperty)#3 (2) {
+object(ReflectionProperty)#%d (2) {
   ["name"]=>
   string(3) "zzz"
   ["class"]=>
   string(1) "x"
 }
-int(200)
-bool(true)
-bool(false)
 int(2)
 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