summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bug55524.phpt
blob: d37737aaca5b519a11332f27b6689cb49e4baadf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #55524 Traits should not be able to extend a class
--FILE--
<?php

class Base {}

trait Foo extends Base {
    function bar() {}
}

echo 'DONE';
?>
--EXPECTF--
Parse error: syntax error, unexpected token "extends", expecting "{" in %s on line %d