blob: 4fae7b4cda3f8665f1de411badcfc7ce6acd0ee3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php // -*- C++ -*-
// Test for: PEAR.php
// Parts tested: - PEAR_Error class
// - PEAR::isError static method
// testing PEAR_Error
require_once "PEAR.php";
print "new PEAR_Error ";
var_dump($err = new PEAR_Error);
print "isError 1 ";
var_dump(PEAR::isError($err));
print "isError 2 ";
$str = "not an error";
var_dump(PEAR::isError($str));
?>
|