From ce8b54eae145418005602a32b0cc7d87ed687e9b Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Sat, 25 Mar 2023 15:52:40 +0100 Subject: [PATCH] test: add php8.2 true, null and false types test --- internal/php8/parser_php8_2_test.go | 300 ++++++++++++++++++++++++++++ 1 file changed, 300 insertions(+) diff --git a/internal/php8/parser_php8_2_test.go b/internal/php8/parser_php8_2_test.go index e0ea520..f0076ca 100644 --- a/internal/php8/parser_php8_2_test.go +++ b/internal/php8/parser_php8_2_test.go @@ -99,3 +99,303 @@ final readonly class Boo { suite.Run() } + +func TestNullFalseTrueTypes(t *testing.T) { + suite := tester.NewParserDumpTestSuite(t) + suite.UsePHP8() + suite.Code = `