1--TEST--
2#[\Deprecated]: Message Formats.
3--FILE--
4<?php
5
6#[\Deprecated]
7function test1() {
8}
9
10#[\Deprecated()]
11function test2() {
12}
13
14#[\Deprecated("use test() instead")]
15function test3() {
16}
17
18#[\Deprecated(message: "use test() instead", since: "1.0")]
19function test4() {
20}
21
22#[\Deprecated(since: "1.0", message: "use test() instead")]
23function test5() {
24}
25
26#[\Deprecated(since: "1.0")]
27function test6() {
28}
29
30test1();
31test2();
32test3();
33test4();
34test5();
35test6();
36
37?>
38--EXPECTF--
39Deprecated: Function test1() is deprecated in %s on line %d
40
41Deprecated: Function test2() is deprecated in %s on line %d
42
43Deprecated: Function test3() is deprecated, use test() instead in %s on line %d
44
45Deprecated: Function test4() is deprecated since 1.0, use test() instead in %s on line %d
46
47Deprecated: Function test5() is deprecated since 1.0, use test() instead in %s on line %d
48
49Deprecated: Function test6() is deprecated since 1.0 in %s on line %d
50