mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
dd56de8d1e
pre-installed PEAR, needing to run as root user, most tests will fail if PEAR install directory is not inside include_path and so on.
26 lines
441 B
PHP
26 lines
441 B
PHP
--TEST--
|
|
PEAR_Error: die mode
|
|
--SKIPIF--
|
|
skip
|
|
--FILE--
|
|
<?php // -*- C++ -*-
|
|
|
|
// Test for: PEAR.php
|
|
// Parts tested: - PEAR_Error class
|
|
// - PEAR::isError static method
|
|
// testing PEAR_Error
|
|
|
|
include dirname(__FILE__)."/../PEAR.php";
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
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!!
|