Home
last modified time | relevance | path

Searched refs:Generator (Results 1 – 25 of 66) sorted by relevance

123

/PHP-7.4/Zend/tests/generators/
H A Dmutli_yield_from_with_exception.phpt2 Multiple yield from on a same Generator throwing an Exception
26 print "Generator $i\n";
33 Generator 0
39 #1 [internal function]: gen(Object(Generator))
40 #2 %s(%d): Generator->next()
42 Generator 1
44 ClosedGeneratorException: Generator yielded from aborted, no return value available in %s:%d
46 #0 [internal function]: gen(Object(Generator))
47 #1 %s(%d): Generator->current()
H A Dgenerator_return_without_value.phpt36 object(Generator)#%d (0) {
38 object(Generator)#%d (0) {
40 object(Generator)#%d (0) {
42 object(Generator)#%d (0) {
H A Dyield_from_multi_tree_exception.phpt68 #1 %s(%d): gen(Object(Generator), 1)
69 #2 %s(%d): gen(Object(Generator), 2)
70 #3 [internal function]: gen(Object(Generator), 3)
71 #4 %s(%d): Generator->next()
73 ClosedGeneratorException: Generator yielded from aborted, no return value available in %s:%d
75 #0 [internal function]: gen(Object(Generator), 1)
76 #1 %s(%d): Generator->current()
H A Dyield_from_already_running.phpt2 Yielding from the already running Generator should fail (bug #69458)
14 Fatal error: Uncaught Error: Impossible to yield from the Generator being currently run in %s:%d
17 #1 %s(%d): Generator->send(Object(Generator))
H A Dbug74954.phpt37 #1 [internal function]: gen(Object(Generator))
38 #2 %s(%d): Generator->next()
41 ClosedGeneratorException: Generator yielded from aborted, no return value available in %s:%d
43 #0 [internal function]: gen(Object(Generator))
44 #1 %s(%d): Generator->next()
H A Dgc_with_yield_from.phpt35 object(Generator)#1 (0) {
38 object(Generator)#2 (0) {
41 object(Generator)#3 (0) {
44 object(Generator)#4 (0) {
H A Dget_return_errors.phpt2 Generator::getReturn() error cases
14 // Generator hasn't reached the "return" yet
33 // Generator has been aborted as a result of an exception
47 // Generator throws during auto-priming of getReturn() call
65 // Generator has been aborted as a result of an exception
H A Dgenerator_returns_generator.phpt2 A generator function returns a Generator object
14 var_dump($generator instanceof Generator);
H A Dyield_from_backtrace.phpt41 #1 Generator->next() called at [%s:%d]
45 #2 Generator->next() called at [%s:%d]
48 #1 Generator->next() called at [%s:%d]
H A Dthrow_not_an_exception.phpt2 Generator::throw() with something that's not an exception
18 #1 %s(%d): Generator->throw(Object(stdClass))
H A Dbacktrace.phpt26 #2 Generator->rewind() called at [%s:%d]
27 #3 f3(Generator Object ()) called at [%s:%d]
H A Dbug71441.phpt2 Bug #71441 (Typehinted Generator with return in try/finally crashes)
9 return function (): \Generator {
/PHP-7.4/Zend/tests/generators/errors/
H A Dserialize_unserialize_error.phpt17 var_dump(unserialize('O:9:"Generator":0:{}'));
23 var_dump(unserialize('C:9:"Generator":0:{}'));
30 Exception: Serialization of 'Generator' is not allowed in %s:%d
32 #0 %s(%d): serialize(Object(Generator))
36 Warning: Erroneous data format for unserializing 'Generator' in %sserialize_unserialize_error.php o…
40 Exception: Unserialization of 'Generator' is not allowed in %s:%d
42 #0 %s(%d): unserialize('C:9:"Generator"...')
H A Dgenerator_extend_error.phpt2 The Generator class cannot be extended
6 class ExtendedGenerator extends Generator { }
10 Fatal error: Class ExtendedGenerator may not inherit from final class (Generator) in %s on line %d
H A Dgenerator_instantiate_error.phpt2 It's not possible to directly instantiate the Generator class
6 new Generator;
10 Fatal error: Uncaught Error: The "Generator" class is reserved for internal use and cannot be manua…
H A Dresume_running_generator_error.phpt26 #0 %s(%d): Generator->next()
28 #2 %s(%d): Generator->send(Object(Generator))
/PHP-7.4/ext/reflection/tests/
H A DReflectionGenerator_basic.phpt25 $gen->valid(); // start Generator
38 object(Generator)#2 (0) {
56 object(Generator)#6 (0) {
66 object(Generator)#4 (0) {
72 object(Generator)#4 (0) {
79 object(Generator)#5 (0) {
85 object(Generator)#5 (0) {
H A Dbug64007.phpt2 Bug #64007 (There is an ability to create instance of Generator by hand)
5 $reflection = new ReflectionClass('Generator');
17 string(%d) "Class Generator is an internal class marked as final that cannot be instantiated withou…
19 Fatal error: Uncaught Error: The "Generator" class is reserved for internal use and cannot be manua…
H A DReflectionGenerator_in_Generator.phpt30 yield; // Generator !
40 object(Generator)#2 (0) {
63 object(Generator)#5 (0) {
/PHP-7.4/Zend/tests/return_types/
H A Dgenerators001.phpt5 function test1() : Generator {
23 object(Generator)#%d (%d) {
25 object(Generator)#%d (%d) {
27 object(Generator)#%d (%d) {
H A Dgenerators002.phpt2 Generator return type must be Generator, Iterator or Traversable
9 Fatal error: Generators may only declare a return type of Generator, Iterator, Traversable, or iter…
H A Dgenerators003.phpt10 function getIterator(): Generator {
22 Generator
/PHP-7.4/Zend/tests/
H A Dbug70241.phpt2 Bug #70241 (Skipped assertions affect Generator returns)
13 var_dump(foo() instanceof Generator);
H A Dbug72373.phpt2 Bug #72373: TypeError after Generator function w/declared return type finishes
6 function foo() : Generator {
/PHP-7.4/sapi/phpdbg/tests/
H A Dgenerator_run.phpt8 prompt> caught Generator exception
18 yield "caught Generator exception";

Completed in 20 milliseconds

123