diff options
Diffstat (limited to 'Zend/tests/traits/language018.phpt')
-rw-r--r-- | Zend/tests/traits/language018.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/traits/language018.phpt b/Zend/tests/traits/language018.phpt new file mode 100644 index 0000000000..ac36698e35 --- /dev/null +++ b/Zend/tests/traits/language018.phpt @@ -0,0 +1,15 @@ +--TEST-- +abstract alias +--FILE-- +<?php +trait T1 { + function foo() {} +} +class C1 { + use T1 { + T1::foo as abstract; + } +} +?> +--EXPECTF-- +Fatal error: Cannot use 'abstarct' as method modifier in %s on line %d |