1--TEST--
2Attribute validation callback of internal attributes.
3--SKIPIF--
4<?php
5if (!extension_loaded('zend-test')) {
6    echo "skip requires zend-test extension\n";
7}
8--FILE--
9<?php
10
11#[ZendTestAttribute]
12function foo() {
13}
14?>
15--EXPECTF--
16Fatal error: Only classes can be marked with #[ZendTestAttribute] in %s
17