From 2711048659fe812423541bbdbfd4f285ef7e0806 Mon Sep 17 00:00:00 2001 From: Bill Ruddock Date: Sun, 14 Jul 2024 20:26:06 +0100 Subject: [PATCH] PSR2/UseDeclaration: move parse error test case to its own file Update comment to indicate that this is an intentional parse error. This was implied by the original comment instructing that it must be the last line in the test case file. --- .../PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc | 3 --- .../PSR2/Tests/Namespaces/UseDeclarationUnitTest.18.inc | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.18.inc diff --git a/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc b/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc index 61befc9e73..977a7fb228 100644 --- a/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc +++ b/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc @@ -38,6 +38,3 @@ enum SomeEnum $x = $foo ? function ($foo) use /* comment */ ($bar): int { return 1; } : $bar; - -// Testcase must be on last line in the file. -use diff --git a/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.18.inc b/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.18.inc new file mode 100644 index 0000000000..8195f2f58c --- /dev/null +++ b/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.18.inc @@ -0,0 +1,4 @@ +