2000-09-09 02:39:56 +00:00
|
|
|
--TEST--
|
2001-11-04 09:07:17 +00:00
|
|
|
PEAR_Error: die mode
|
2000-09-09 02:39:56 +00:00
|
|
|
--SKIPIF--
|
2002-10-22 14:19:02 +00:00
|
|
|
skip
|
2000-09-09 02:39:56 +00:00
|
|
|
--FILE--
|
|
|
|
<?php // -*- C++ -*-
|
|
|
|
|
|
|
|
// Test for: PEAR.php
|
|
|
|
// Parts tested: - PEAR_Error class
|
|
|
|
// - PEAR::isError static method
|
|
|
|
// testing PEAR_Error
|
|
|
|
|
2002-03-02 03:11:02 +00:00
|
|
|
include dirname(__FILE__)."/../PEAR.php";
|
2000-09-09 02:39:56 +00:00
|
|
|
|
2001-11-04 09:07:17 +00:00
|
|
|
error_reporting(E_ALL);
|
2000-09-09 02:39:56 +00:00
|
|
|
|
|
|
|
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!!
|