helly           Sat Mar 19 10:15:33 2005 EDT

  Modified files:              
    /php-src/ext/spl/tests      bug31185.phpt 
  Log:
  - Update test
  
  
http://cvs.php.net/diff.php/php-src/ext/spl/tests/bug31185.phpt?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/spl/tests/bug31185.phpt
diff -u php-src/ext/spl/tests/bug31185.phpt:1.1 
php-src/ext/spl/tests/bug31185.phpt:1.2
--- php-src/ext/spl/tests/bug31185.phpt:1.1     Sat Mar 19 10:09:11 2005
+++ php-src/ext/spl/tests/bug31185.phpt Sat Mar 19 10:15:32 2005
@@ -15,6 +15,7 @@
        }
 
        public function offsetSet($index, $value) {
+               echo __METHOD__ . "($index, $value)\n";
                $this->array[$index] = $value;
        }
 
@@ -25,11 +26,11 @@
 
 }
 
-$i = 0;
+$i = 0; $j = 0;
 $foo = new FooBar();
-$foo[$i] = $i++;
-$foo[$i] = $i++;
-$foo[$i] = $i++;
+$foo[$j++] = $i++;
+$foo[$j++] = $i++;
+$foo[$j++] = $i++;
 try
 {
        unset($foo[1]);
@@ -43,14 +44,17 @@
 ?>
 ===DONE===
 --EXPECT--
+FooBar::offsetSet(0, 0)
+FooBar::offsetSet(1, 1)
+FooBar::offsetSet(2, 2)
 CAUGHT: FAIL
 FooBar Object
 (
     [array:private] => Array
         (
-            [1] => 0
-            [2] => 1
-            [3] => 2
+            [0] => 0
+            [1] => 1
+            [2] => 2
         )
 
 )

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

Reply via email to