--TEST-- Generators can't be serialized or unserialized --FILE-- --EXPECTF-- Exception: Serialization of 'Generator' is not allowed in %s:%d Stack trace: #0 %s(%d): serialize(Object(Generator)) #1 {main} Exception: Unserialization of 'Generator' is not allowed in %s:%d Stack trace: #0 %s(%d): unserialize('O:9:"Generator"...') #1 {main} Exception: Unserialization of 'Generator' is not allowed in %s:%d Stack trace: #0 %s(%d): unserialize('C:9:"Generator"...') #1 {main}