1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/Zend/tests/class_alias_006.phpt
2020-07-21 14:47:03 +02:00

15 lines
304 B
PHP

--TEST--
Testing creation of alias to an internal class
--FILE--
<?php
try {
class_alias('stdclass', 'foo');
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
class_alias(): Argument #1 ($class) must be a user-defined class name, internal class name given