Hey: >> On May 16, 2015, at 12:35 AM, Dan Ackroyd <dan...@basereality.com> wrote: >> >> On 15 May 2015 at 14:38, Xinchen Hui <larue...@gmail.com> wrote: >> Hey: >> >> as described in https://bugs.php.net/bug.php?id=69640&thanks=1 >> >> instead of fixing it by exam the error type, I'd prefer to >> disallow initializing a engine exception from user land.. > > > How would that work when people want to write unit/integration tests > to test the behaviour of a module when an EngineException is thrown? > > If you can't create a certain type of exception, it would mean that > some code is basically untestable...which seems bad. You can not creat it directly, but you can trigger the engine to throw one
Thanks > > cheers > Dan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php