helly           Mon Jul 24 23:41:09 2006 UTC

  Added files:                 (Branch: PHP_5_2)
    /php-src/ext/spl/tests      iterator_049b.phpt 

  Modified files:              
    /php-src/ext/spl/tests      iterator_049.phpt 
  Log:
  - MFH Update tests
  
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/iterator_049.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/spl/tests/iterator_049.phpt
diff -u php-src/ext/spl/tests/iterator_049.phpt:1.1.2.2 
php-src/ext/spl/tests/iterator_049.phpt:1.1.2.3
--- php-src/ext/spl/tests/iterator_049.phpt:1.1.2.2     Sun Jul 16 21:12:32 2006
+++ php-src/ext/spl/tests/iterator_049.phpt     Mon Jul 24 23:41:09 2006
@@ -6,14 +6,14 @@
 <?php
 
 $ar = new ArrayIterator(array(NULL=>NULL));
-var_dump($ar);
[EMAIL PROTECTED]($ar);
 var_dump($ar->getArrayCopy());
 
 ?>
 ===DONE===
 <?php exit(0); ?>
 --EXPECTF--
-object(ArrayIterator)#1 (1) {
+object(ArrayIterator)#%d (1) {
   [""]=>
   NULL
 }

http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/iterator_049b.phpt?view=markup&rev=1.1
Index: php-src/ext/spl/tests/iterator_049b.phpt
+++ php-src/ext/spl/tests/iterator_049b.phpt
--TEST--
SPL: ArrayIterator with NULL key
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php

$ar = new ArrayIterator(array(
        NULL=>1, 
        "\0"=>2,
        "\0\0"=>3,
        "\0\0\0"=>4,
        "\0*"=>5,
        "\0*\0"=>6,
        ));
@var_dump($ar);
var_dump($ar->getArrayCopy());

?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(ArrayIterator)#%d (6) {
  [""]=>
  int(1)
  ["
  int(2)
  ["
  int(3)
  ["
  int(4)
  ["
  int(5)
  ["
  int(6)
}
array(6) {
  [""]=>
  int(1)
  ["
  int(2)
  ["
  int(3)
  ["
  int(4)
  ["
  int(5)
  ["
  int(6)
}
===DONE===
--UEXPECTF--
object(ArrayIterator)#%d (6) {
  [u""]=>
  int(1)
  [u"
  int(2)
  [u"
  int(3)
  [u"
  int(4)
  [u"
  int(5)
  [u"
  int(6)
}
array(6) {
  [u""]=>
  int(1)
  [u"
  int(2)
  [u"
  int(3)
  [u"
  int(4)
  [u"
  int(5)
  [u"
  int(6)
}
===DONE===

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

Reply via email to