mirror of
https://github.com/php/php-src.git
synced 2026-04-19 14:01:01 +02:00
The extension name should match the name of the ext/ directory, otherwise it will not get picked up by run-tests. It would be possible to remap this in run-tests, but I think it's better to rename the extension to follow the standard format. Other extensions also use underscore instead of hyphen (e.g. pdo_mysql and not pdo-mysql). Of course, the ./configure option remains hyphenated. Closes GH-6613.
17 lines
311 B
PHP
17 lines
311 B
PHP
--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
|