1--TEST--
2Generator::throw() with something that's not an exception
3--FILE--
4<?php
5
6function gen() {
7    yield;
8}
9
10$gen = gen();
11$gen->throw(new stdClass);
12
13?>
14--EXPECTF--
15Fatal error: Exceptions must be valid objects derived from the Exception base class in %s on line %d
16