xref: /PHP-7.1/Zend/tests/foreach_undefined.phpt (revision 7af945e2)
1--TEST--
2foreach() & undefined var
3--FILE--
4<?php
5
6foreach($a as $val);
7
8echo "Done\n";
9?>
10--EXPECTF--
11Notice: Undefined variable: a in %s on line %d
12
13Warning: Invalid argument supplied for foreach() in %s on line %d
14Done
15