diff options
author | Felipe Pena <felipe@php.net> | 2010-05-07 11:09:35 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-05-07 11:09:35 +0000 |
commit | 5d701938a3dcdab2b9b09629a1f80b941f60ce7f (patch) | |
tree | 5f45fdf52f9ae422395921587f469f4f887dc5ee /Zend/tests/traits | |
parent | 7b7463bb8a7682b207d6c5653bd858116aaeddba (diff) | |
download | php-git-5d701938a3dcdab2b9b09629a1f80b941f60ce7f.tar.gz |
- Added check for constant creation on Traits
- Simplified trait flag check
- Test++ :)
Diffstat (limited to 'Zend/tests/traits')
-rw-r--r-- | Zend/tests/traits/error_016.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/traits/error_016.phpt b/Zend/tests/traits/error_016.phpt new file mode 100644 index 0000000000..65a3a83485 --- /dev/null +++ b/Zend/tests/traits/error_016.phpt @@ -0,0 +1,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 |