package printer_test import ( "testing" "github.com/VKCOM/php-parser/internal/tester" ) func TestParseAndPrintReadonlyModifierPHP81(t *testing.T) { tester.NewParserPrintTestSuite(t).UsePHP8().Run(`doesNotExist(...); Test::privateMethod(...); Test::instanceMethod(...); $fn = (new A)->$name2(...); false && strlen(...); $foo?->foo->bar(...); $foo?->foo($foo->bar(...)); $foo = $closure->__invoke(...); // #[Attribute(...)] // not working // class Foo {} // new Foo(...); // not working `) } func TestIntersectionTypesSyntaxPHP81(t *testing.T) { tester.NewParserPrintTestSuite(t).UsePHP8().Run(`