mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08:00
def1424b12
@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 :-)
19 lines
363 B
C++
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));
|
|
|
|
?>
|