xref: /PHP-7.2/Zend/tests/traits/error_016.phpt (revision 5d701938)
1--TEST--
2Trying to create a constant on Trait
3--FILE--
4<?php
5
6trait foo {
7	const a = 1;
8}
9
10?>
11--EXPECTF--
12Fatal error: Traits cannot have constants in %s on line %d
13