php-src/ext/spl/tests/fileobject_setmaxlinelen_error003.phpt
Gabriel Caruso ce1d69a1f6 Use int instead of integer in type errors
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
2018-02-04 19:08:23 +01:00

13 lines
301 B
PHP

--TEST--
SPL: SplFileObject::setMaxLineLen error 003
--CREDITS--
Erwin Poeze <erwin.poeze at gmail.com>
--FILE--
<?php
$s = new SplFileObject( __FILE__ );
$s->setMaxLineLen('string');
?>
--EXPECTF--
Warning: SplFileObject::setMaxLineLen() expects parameter 1 to be int, string given in %s on line %d