summaryrefslogtreecommitdiff
path: root/Zend/tests/bug65419.phpt
blob: 553bb5d939e52355cb9a209f4c6f9b7410f877ad (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();
?>
--EXPECTF--
ghi
ghi