Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (25 sloc) 0.489 kB
--TEST--
PEAR::isError test
--SKIPIF--
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
}
?>
--FILE--
<?php
require_once 'PEAR.php';
$error = PEAR::throwError('test', 123, 'Wooop');
var_dump(PEAR::isError($error));
$error = PEAR::throwError('test', 123);
var_dump(PEAR::isError($error));
$error = PEAR::throwError('test');
var_dump(PEAR::isError($error));
$error = PEAR::throwError();
var_dump(PEAR::isError($error));
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
Jump to Line
Something went wrong with that request. Please try again.