1--TEST-- 2SplFixedArray::key() with a parameter passed. This is a bug and an error should be called. 3--CREDITS-- 4PHPNW Test Fest 2009 - Jordan Hatch 5--FILE-- 6<?php 7 8$array = new SplFixedArray( 3 ); 9 10$array[0] = "Hello"; 11$array[1] = "world"; 12$array[2] = "elePHPant"; 13 14foreach ( $array as $value ) { 15 echo $array->key( array("this","should","not","execute") ); 16} 17 18?> 19--EXPECTF-- 20Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d 21 22Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d 23 24Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d 25