summaryrefslogtreecommitdiff
path: root/Zend/tests/bug65419.phpt
blob: 677b2750f211844396aadc980342b284fcafdee1 (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