xref: /PHP-8.2/Zend/tests/class_alias_006.phpt (revision 5770b667)
1--TEST--
2Testing creation of alias to an internal class
3--FILE--
4<?php
5
6try {
7    class_alias('stdclass', 'foo');
8} catch (ValueError $exception) {
9    echo $exception->getMessage() . "\n";
10}
11
12?>
13--EXPECT--
14class_alias(): Argument #1 ($class) must be a user-defined class name, internal class name given
15