xref: /PHP-5.5/Zend/tests/bug65419.phpt (revision 7c77ca38)
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--EXPECTF--
22ghi
23ghi