xref: /PHP-8.2/Zend/tests/break_error_003.phpt (revision f8d79582)
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