Annotation of embedaddon/php/Zend/tests/errmsg_025.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: errmsg: cannot inherit previously inherited constant
! 3: --FILE--
! 4: <?php
! 5:
! 6: interface test1 {
! 7: const FOO = 10;
! 8: }
! 9:
! 10: interface test2 {
! 11: const FOO = 10;
! 12: }
! 13:
! 14: class test implements test1, test2 {
! 15: }
! 16:
! 17: echo "Done\n";
! 18: ?>
! 19: --EXPECTF--
! 20: Fatal error: Cannot inherit previously-inherited or override constant FOO from interface test2 in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>