1--TEST--
2Throwing custom exception object from assert() throws given object
3--INI--
4zend.assertions = 1
5assert.exception = 1
6--FILE--
7<?php
8class CustomException extends Exception {}
9assert(false, new CustomException('Exception message'));
10?>
11--EXPECTF--
12Fatal error: Uncaught CustomException: Exception message in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16