]> granicus.if.org Git - php/commitdiff
Fix tests
authorandy wharmby <wharmby@php.net>
Mon, 29 Jun 2009 07:45:14 +0000 (07:45 +0000)
committerandy wharmby <wharmby@php.net>
Mon, 29 Jun 2009 07:45:14 +0000 (07:45 +0000)
ext/reflection/tests/bug46064.phpt
ext/reflection/tests/bug46064_2.phpt

index c11829a12604ffbf1fd8df8294a27346af3e2c63..bd46e0dfb17b4d9d1d209b5b135568227f3fd27b 100644 (file)
@@ -37,10 +37,6 @@ class bar extends test {
                $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 @@ class bar extends test {
 new bar;
 
 ?>
+===DONE===
 --EXPECTF--
-object(ReflectionProperty)#2 (2) {
+object(ReflectionProperty)#%d (2) {
   [u"name"]=>
   unicode(1) "z"
   [u"class"]=>
@@ -67,15 +64,13 @@ array(1) {
 int(1000)
 ---------------------------
 unicode(30) "Property x::$zz does not exist"
-object(ReflectionProperty)#3 (2) {
+object(ReflectionProperty)#%d (2) {
   [u"name"]=>
   unicode(3) "zzz"
   [u"class"]=>
   unicode(1) "x"
 }
-int(200)
-bool(true)
-bool(false)
 int(2)
 bool(false)
 bool(true)
+===DONE===
\ No newline at end of file
index 90bde69fe36f437f0909652e94c8183e90b18855..a4d55643ba285fa1f0bc4cbf1358bddef8aa83a8 100644 (file)
@@ -36,14 +36,15 @@ class test extends bar {
 new test;
 
 ?>
---EXPECT--
-object(ReflectionProperty)#3 (2) {
+===DONE===
+--EXPECTF--
+object(ReflectionProperty)#%d (2) {
   [u"name"]=>
   unicode(4) "test"
   [u"class"]=>
   unicode(3) "foo"
 }
-object(ReflectionProperty)#5 (2) {
+object(ReflectionProperty)#%d (2) {
   [u"name"]=>
   unicode(1) "a"
   [u"class"]=>
@@ -56,17 +57,18 @@ bool(true)
 bool(false)
 array(2) {
   [0]=>
-  &object(ReflectionProperty)#6 (2) {
+  &object(ReflectionProperty)#%d (2) {
     [u"name"]=>
     unicode(1) "b"
     [u"class"]=>
     unicode(4) "test"
   }
   [1]=>
-  &object(ReflectionProperty)#7 (2) {
+  &object(ReflectionProperty)#%d (2) {
     [u"name"]=>
     unicode(1) "a"
     [u"class"]=>
     unicode(4) "test"
   }
 }
+===DONE===
\ No newline at end of file