1--TEST--
2#[\Deprecated]: Class Constants.
3--FILE--
4<?php
5
6class Clazz {
7	#[\Deprecated]
8	public const TEST = 1;
9
10	#[\Deprecated()]
11	public const TEST2 = 2;
12
13	#[\Deprecated("use Clazz::TEST instead")]
14	public const TEST3 = 3;
15
16	#[\Deprecated]
17	public const TEST4 = 4;
18
19	#[\Deprecated]
20	public const TEST5 = 5;
21}
22
23var_dump(Clazz::TEST);
24var_dump(Clazz::TEST2);
25var_dump(Clazz::TEST3);
26
27var_dump(constant('Clazz::TEST4'));
28var_dump(defined('Clazz::TEST5'));
29
30?>
31--EXPECTF--
32Deprecated: Constant Clazz::TEST is deprecated in %s on line %d
33int(1)
34
35Deprecated: Constant Clazz::TEST2 is deprecated in %s on line %d
36int(2)
37
38Deprecated: Constant Clazz::TEST3 is deprecated, use Clazz::TEST instead in %s on line %d
39int(3)
40
41Deprecated: Constant Clazz::TEST4 is deprecated in %s on line %d
42int(4)
43bool(true)
44