1--TEST--
2#[\Deprecated]: Message from constant.
3--FILE--
4<?php
5
6#[\Deprecated(DEPRECATION_MESSAGE)]
7function test() {
8}
9
10define('DEPRECATION_MESSAGE', 'from constant');
11
12test();
13
14?>
15--EXPECTF--
16Deprecated: Function test() is deprecated, from constant in %s on line %d
17