xref: /PHP-5.4/Zend/tests/traits/bug55524.phpt (revision 34fe6261)
1--TEST--
2Bug #55524 Traits should not be able to extend a class
3--FILE--
4<?php
5
6class Base {}
7
8trait Foo extends Base {
9    function bar() {}
10}
11
12echo 'DONE';
13?>
14--EXPECTF--
15Fatal error: A trait (Foo) cannot extend a class. Traits can only be composed from other traits with the 'use' keyword. Error in %s on line %d
16