summaryrefslogtreecommitdiff
path: root/Zend/tests/attributes/016_custom_attribute_validation.phpt
blob: 11ffeaa7745d9604a4dd6586825a61d4b08a8fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Attribute validation callback of internal attributes.
--SKIPIF--
<?php
if (!extension_loaded('zend_test')) {
    echo "skip requires zend_test extension\n";
}
--FILE--
<?php

#[ZendTestAttribute]
function foo() {
}
?>
--EXPECTF--
Fatal error: Only classes can be marked with #[ZendTestAttribute] in %s