php-src/ext/spl/tests/SplFixedArray_fromArray_invalid_parameter_002.phpt
2009-05-23 15:38:18 +00:00

11 lines
277 B
PHP

--TEST--
pass a string into fromArray()
--CREDITS--
PHPNW Testfest 2009 - Lorna Mitchell
--FILE--
<?php
echo SplFixedArray::fromArray('hello');
?>
--EXPECTF--
Warning: SplFixedArray::fromArray() expects parameter 1 to be array, %unicode_string_optional% given in %s on line %d