xref: /PHP-7.4/Zend/tests/break_error_003.phpt (revision a16aa4c4)
1--TEST--
2'break' error (not in the loop context)
3--FILE--
4<?php
5function foo () {
6	break;
7}
8?>
9--EXPECTF--
10Fatal error: 'break' not in the 'loop' or 'switch' context in %sbreak_error_003.php on line 3
11