summaryrefslogtreecommitdiff
path: root/Zend/tests/bug65419.phpt
blob: c10a518376b89ae615a69a92f6c0206b4bba6cfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Bug #65419 (Inside trait, self::class != __CLASS__)
--FILE--
<?php
trait abc
{
  static function def()
  {
    echo self::class, "\n";
    echo __CLASS__, "\n";
  }
}

class ghi
{
  use abc;
}

ghi::def();
?>
--EXPECT--
ghi
ghi