summaryrefslogtreecommitdiff
path: root/Zend/tests/attributes/024_internal_target_validation.phpt
blob: 49a5ae68c8b14ef9b322ba2f55a22eecadb59697 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Internal attribute targets are validated.
--FILE--
<?php

@@Attribute
function a1() { }

?>
--EXPECTF--
Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s