summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/error_016.phpt
blob: 65a3a8348562801e32d156ba9d951f41fae49d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Trying to create a constant on Trait
--FILE--
<?php

trait foo {
	const a = 1;
}

?>
--EXPECTF--
Fatal error: Traits cannot have constants in %s on line %d