xref: /PHP-7.4/Zend/tests/bug65419.phpt (revision d679f022)
1--TEST--
2Bug #65419 (Inside trait, self::class != __CLASS__)
3--FILE--
4<?php
5trait abc
6{
7  static function def()
8  {
9    echo self::class, "\n";
10    echo __CLASS__, "\n";
11  }
12}
13
14class ghi
15{
16  use abc;
17}
18
19ghi::def();
20?>
21--EXPECT--
22ghi
23ghi
24