xref: /PHP-7.1/Zend/tests/exception_006.phpt (revision e97d5fab)
1--TEST--
2Trying to throw a non-object
3--FILE--
4<?php
5
6throw 1;
7
8?>
9--EXPECTF--
10Fatal error: Uncaught Error: Can only throw objects in %s:%d
11Stack trace:
12#0 {main}
13  thrown in %s on line %d
14