From 375ccd136dad1e97d12467c3650890c357bc49b7 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Sat, 25 Mar 2023 16:11:37 +0100 Subject: [PATCH] test: add php8.2 constants in traits test --- internal/php8/parser_php8_2_test.go | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/internal/php8/parser_php8_2_test.go b/internal/php8/parser_php8_2_test.go index f0076ca..3e24255 100644 --- a/internal/php8/parser_php8_2_test.go +++ b/internal/php8/parser_php8_2_test.go @@ -399,3 +399,44 @@ class Bar { suite.Run() } + +func TestConstantsInTraits(t *testing.T) { + suite := tester.NewParserDumpTestSuite(t) + suite.UsePHP8() + suite.Code = `