summaryrefslogtreecommitdiff
path: root/Zend/tests/015.phpt
blob: a802542813e581233ed00e9f27dd3f98f763f568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--TEST--
trigger_error() tests
--FILE--
<?php

var_dump(trigger_error());
var_dump(trigger_error("error"));
var_dump(trigger_error(array()));
var_dump(trigger_error("error", -1));
var_dump(trigger_error("error", 0));
var_dump(trigger_error("error", E_USER_WARNING));

echo "Done\n";
?>
--EXPECTF--	
Warning: Wrong parameter count for trigger_error() in %s on line %d
NULL

Notice: error in %s on line %d
bool(true)

Notice: Array to string conversion in %s on line %d

Notice: Array in %s on line %d
bool(true)

Warning: Invalid error type specified in %s on line %d
bool(false)

Warning: Invalid error type specified in %s on line %d
bool(false)

Warning: error in %s on line %d
bool(true)
Done