xref: /PHP-5.5/Zend/tests/bug69467.phpt (revision c667c26f)
1--TEST--
2Bug #69467 (Wrong checked for the interface by using Trait)
3--FILE--
4<?php
5interface Baz {
6    public function bad();
7}
8
9trait Bar{
10    protected function bad(){}
11}
12
13class Foo implements Baz{
14    use Bar;
15}
16
17$test = new Foo();
18var_dump($test instanceof Baz);
19?>
20--EXPECTF--
21Fatal error: Access level to Bar::bad() must be public (as in class Baz) in %sbug69467.php on line %d
22