1--TEST--
2Class properties in AST version 50
3--FILE--
4<?php
5
6require __DIR__ . '/../util.php';
7
8$code = <<<'PHP'
9<?php
10namespace Foo;
11echo Bar::class;
12echo namespace\Bat::class;
13echo \Baz::class;
14PHP;
15
16$node = ast\parse_code($code, $version=50);
17echo ast_dump($node), "\n";
18?>
19--EXPECTF--
20Deprecated: ast\parse_code(): Version 50 is deprecated in %s.php on line 13
21AST_STMT_LIST
22    0: AST_NAMESPACE
23        name: "Foo"
24        stmts: null
25    1: AST_ECHO
26        expr: AST_CLASS_CONST
27            class: AST_NAME
28                flags: NAME_NOT_FQ (1)
29                name: "Bar"
30            const: "class"
31    2: AST_ECHO
32        expr: AST_CLASS_CONST
33            class: AST_NAME
34                flags: NAME_RELATIVE (2)
35                name: "Bat"
36            const: "class"
37    3: AST_ECHO
38        expr: AST_CLASS_CONST
39            class: AST_NAME
40                flags: NAME_FQ (0)
41                name: "Baz"
42            const: "class"
43