1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 20:41:18 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/phpcredits.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

55 lines
595 B
PHP

--TEST--
phpcredits()
--FILE--
<?php
var_dump(phpcredits());
var_dump(phpcredits(array()));
echo "--\n";
var_dump(phpcredits(0));
echo "--\n";
var_dump(phpcredits(CREDITS_GROUP));
?>
--EXPECTF--
PHP Credits
PHP Group
%a
Language Design & Concept
%a
%wPHP Authors%w
%a
%wSAPI Modules%w
%a
%wModule Authors%w
%a
%wPHP Documentation%w
%a
PHP Quality Assurance Team
%a
%wWebsites and Infrastructure team%w
%a
bool(true)
Warning: phpcredits() expects parameter 1 to be int, array given in %sphpcredits.php on line 4
NULL
--
PHP Credits
bool(true)
--
PHP Credits
PHP Group
%a
bool(true)