1--TEST--
2Test return type and value for expected input max()
3--FILE--
4<?php
5/*
6 * proto mixed max(mixed arg1 [, mixed arg2 [, mixed ...]])
7 * Function is implemented in ext/standard/array.c
8*/
9
10echo "\n*** Testing sequences of numbers ***\n";
11
12var_dump(max(2,1,2));
13var_dump(max(-2,1,2));
14var_dump(max(2.1,2.11,2.09));
15var_dump(max("", "t", "b"));
16var_dump(max(false, true, false));
17var_dump(max(true, false, true));
18var_dump(max(1, true, false, true));
19var_dump(max(0, true, false, true));
20var_dump(max(0, 1, array(2,3)));
21
22echo "\nDone\n";
23?>
24--EXPECT--
25*** Testing sequences of numbers ***
26int(2)
27int(2)
28float(2.11)
29string(1) "t"
30bool(true)
31bool(true)
32int(1)
33bool(true)
34array(2) {
35  [0]=>
36  int(2)
37  [1]=>
38  int(3)
39}
40
41Done
42