Skip to content

Commit

Permalink
Add Reflection test for #[\Deprecated]
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Apr 18, 2024
1 parent 02ec5a9 commit 7109dea
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Zend/tests/attributes/deprecated/012.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--TEST--
#[\Deprecated]: ReflectionFunction::isDeprecated() returns true.
--FILE--
<?php

#[\Deprecated]
function test() {
}

$r = new ReflectionFunction('test');

var_dump($r->isDeprecated());

?>
--EXPECTF--
bool(true)

0 comments on commit 7109dea

Please sign in to comment.