mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 10:25:41 +00:00
18 lines
415 B
PHP
18 lines
415 B
PHP
--TEST--
|
|
Check for Yaf_Exception
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("yaf")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$previous = new Yaf_Exception("Previous", 100);
|
|
$exception = new Yaf_Exception("Exception", 200, $previous);
|
|
|
|
var_dump($previous === $exception->getPrevious());
|
|
var_dump($exception->getMessage());
|
|
var_dump($exception->getPrevious()->getCode());
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
string(9) "Exception"
|
|
int(100)
|