php-src/pear/tests/PEAR_Error.t
Stig Bakken def1424b12 @Added XML_Parser class in PEAR (Stig)
@Added "make test" target in pear/ and added some regression tests (Stig)
Also fixed a bug in the PEAR class that was discovered when testing :-)
2000-07-30 17:41:31 +00:00

19 lines
363 B
C++

<?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));
?>