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--
|
2003-11-29 19:43:05 +00:00
|
|
|
<?php
|
|
|
|
if (!getenv('PHP_PEAR_RUNTESTS')) {
|
|
|
|
echo '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
|
|
|
|
|
2004-06-01 14:29:59 +00:00
|
|
|
include_once "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";
|
|
|
|
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
mode=die: test error!!
|