xref: /PHP-7.2/Zend/tests/traits/bug55524.phpt (revision d51fb69c)
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--
15Parse error: syntax error, unexpected 'extends' (T_EXTENDS), expecting '{' in %s on line %d
16