xref: /PHP-5.4/tests/basic/bug51709_1.phpt (revision 3fd08b3b)
1--TEST--
2Bug #51709 (Can't use keywords as method names)
3--FILE--
4<?php
5
6class foo {
7        static function for() {
8                echo "1";
9        }
10}
11
12?>
13===DONE===
14<?php exit(0); ?>
15--EXPECTF--
16Parse error: syntax error, unexpected %s, expecting %s in %sbug51709_1.php on line %d
17