blob: a67a2f30c8dbfd502f81385c4206e374bf079bfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--TEST--
It's not possible to directly instantiate the Generator class
--FILE--
<?php
new Generator;
?>
--EXPECTF--
Fatal error: Uncaught exception 'EngineException' with message 'The "Generator" class is reserved for internal use and cannot be manually instantiated' in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|