1--TEST--
2Test array_fill() function : error conditions
3--FILE--
4<?php
5echo "*** Testing array_fill() : error conditions ***\n";
6
7// calling array_fill with negative values for 'num' parameter
8$start_key = 0;
9$num = -1;
10$val = 1;
11
12try {
13    var_dump( array_fill($start_key,$num,$val) );
14} catch (\ValueError $e) {
15    echo $e->getMessage() . "\n";
16}
17
18?>
19--EXPECT--
20*** Testing array_fill() : error conditions ***
21array_fill(): Argument #2 ($count) must be greater than or equal to 0
22