mirror of
https://github.com/php/php-src.git
synced 2024-10-05 00:36:17 +00:00
16 lines
331 B
Plaintext
16 lines
331 B
Plaintext
|
--TEST--
|
||
|
SPL FixedArray offsetUnset throws error on no parameter
|
||
|
--CREDITS--
|
||
|
PHPNW TestFest 2009 - Ben Longden
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$array = new SplFixedArray(5);
|
||
|
$a = $array->offsetUnset();
|
||
|
if(is_null($a)) {
|
||
|
echo 'PASS';
|
||
|
}
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: SplFixedArray::offsetUnset() expects exactly 1 parameter, 0 given in %s on line %d
|
||
|
PASS
|