summaryrefslogtreecommitdiff
path: root/pear/tests/pear_error2.phpt
blob: 8d2531380ea46c71db656f0eb351e56d0bfc4b5a (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
--TEST--
PEAR_Error in die mode
--SKIPIF--
--FILE--
<?php // -*- C++ -*-

// Test for: PEAR.php
// Parts tested: - PEAR_Error class
//               - PEAR::isError static method
// testing PEAR_Error

require_once "PEAR.php";

error_reporting(4095);

print "mode=die: ";
$err = new PEAR_Error("test error!!\n", -42, PEAR_ERROR_DIE);
print $err->toString() . "\n";

?>
--GET--
--POST--
--EXPECT--
mode=die: test error!!