1--TEST--
2ReflectionMethod::isDeprecated(): Implementing a deprecated interface method.
3--FILE--
4<?php
5
6interface I {
7	#[\Deprecated]
8	function test();
9}
10
11class Clazz implements I {
12	function test() {
13	}
14}
15
16
17$c = new Clazz();
18$c->test();
19
20$r = new ReflectionMethod('I', 'test');
21var_dump($r->isDeprecated());
22
23$r = new ReflectionMethod('Clazz', 'test');
24var_dump($r->isDeprecated());
25
26?>
27--EXPECTF--
28bool(true)
29bool(false)
30