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