xref: /PHP-8.0/Zend/tests/bug70241.phpt (revision f8d79582)
1--TEST--
2Bug #70241 (Skipped assertions affect Generator returns)
3--INI--
4zend.assertions=-1
5--FILE--
6<?php
7
8function foo () {
9    assert(yield 1);
10    return null;
11}
12
13var_dump(foo() instanceof Generator);
14
15?>
16--EXPECT--
17bool(true)
18