Skip to content

Commit 328d702

Browse files
committed
NamingConventions/ValidFunctionName: move test with intentional parse error to a separate file
1 parent 0076d49 commit 328d702

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

WordPress/Tests/NamingConventions/ValidFunctionNameUnitTest.1.inc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,3 @@ enum Suit {
222222
function lähtöaika() {} // OK.
223223
function lÄhtÖaika() {} // Bad, but only handled by the sniff if Mbstring is available.
224224
function lÄhtOaika() {} // Bad, handled via transliteration of non-ASCII chars if Mbstring is not available.
225-
226-
// Live coding/parse error.
227-
// This has to be the last test in the file.
228-
function
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
/*
4+
* Intentional parse error (nothing after T_FUNCTION).
5+
* This should be the only test in this file.
6+
*/
7+
8+
function

0 commit comments

Comments
 (0)