[PHP-CVS] cvs: php-src /ext/spl/tests fixedarray_021.phpt

2008-07-28 Thread Etienne Kneuss
colder  Mon Jul 28 14:24:35 2008 UTC

  Modified files:  
/php-src/ext/spl/tests  fixedarray_021.phpt 
  Log:
  Increase coverage a bit
  
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/fixedarray_021.phpt?r1=1.2r2=1.3diff_format=u
Index: php-src/ext/spl/tests/fixedarray_021.phpt
diff -u php-src/ext/spl/tests/fixedarray_021.phpt:1.2 
php-src/ext/spl/tests/fixedarray_021.phpt:1.3
--- php-src/ext/spl/tests/fixedarray_021.phpt:1.2   Mon Jul 14 08:05:58 2008
+++ php-src/ext/spl/tests/fixedarray_021.phpt   Mon Jul 28 14:24:35 2008
@@ -50,6 +50,17 @@
var_dump($e-getMessage());
 }
 
+
+//non-long indexes
+$a = new SplFixedArray(4);
+$a[2] = foo;
+$a[1] = foo;
+$a[3] = 0;
+
+var_dump(isset($a[0], $a[-1]), $a[1]);
+var_dump(empty($a[3]));
+
+
 ?
 ==DONE==
 --EXPECTF--
@@ -63,4 +74,7 @@
 object(SplFixedArray)#%d (0) {
 }
 unicode(52) An iterator cannot be used with foreach by reference
+bool(false)
+unicode(3) foo
+bool(true)
 ==DONE==



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



[PHP-CVS] cvs: php-src /ext/spl/tests fixedarray_021.phpt

2008-07-14 Thread Antony Dovgal
tony2001Mon Jul 14 08:05:58 2008 UTC

  Modified files:  
/php-src/ext/spl/tests  fixedarray_021.phpt 
  Log:
  fix test
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/fixedarray_021.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/spl/tests/fixedarray_021.phpt
diff -u php-src/ext/spl/tests/fixedarray_021.phpt:1.1 
php-src/ext/spl/tests/fixedarray_021.phpt:1.2
--- php-src/ext/spl/tests/fixedarray_021.phpt:1.1   Sun Jul 13 19:47:27 2008
+++ php-src/ext/spl/tests/fixedarray_021.phpt   Mon Jul 14 08:05:58 2008
@@ -60,7 +60,7 @@
 NULL
 int(0)
 int(0)
-object(SplFixedArray)#$d (0) {
+object(SplFixedArray)#%d (0) {
 }
 unicode(52) An iterator cannot be used with foreach by reference
 ==DONE==



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