xref: /PHP-8.2/Zend/tests/traits/constant_017.phpt (revision 3b62d660)
1--TEST--
2Referencing trait constants directly on calling \defined() returns false
3--FILE--
4<?php
5
6trait TestTrait {
7  public const Constant = 42;
8}
9
10var_dump(\defined('TestTrait::Constant'));
11?>
12--EXPECTF--
13bool(false)
14