summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_020.phpt
blob: 6f8981f5e66e5e889fa7064d2052a33d36287375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Test that the original class name is present in the error out when extending ErrorException
--FILE--
<?php

class MyErrorException extends ErrorException{}
throw new MyErrorException(new stdClass);

?>
--EXPECTF--
Fatal error: Uncaught Error: Wrong parameters for MyErrorException([string $message [, long $code, [ long $severity, [ string $filename, [ long $lineno  [, Throwable $previous = NULL]]]]]]) in %sexception_020.php:%d
Stack trace:
#0 %sexception_020.php(%d): ErrorException->__construct(Object(stdClass))
#1 {main}
  thrown in %sexception_020.php on line %d