summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bug65576a.phpt
blob: d5a86578ab0d2b720ff9a95d4263c7ff8620e8c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Bug #65576 (Constructor from trait conflicts with inherited constructor)
--FILE--
<?php

trait T
{
  public function __construct()
  {
    echo "Trait constructor\n";
  }
}

class A
{
  public function __construct()
  {
    echo "Parent constructor\n";
  }
}

class B extends A
{
  use T;
}

new B();

--EXPECT--
Trait constructor