Annotation of embedaddon/php/Zend/tests/argument_restriction_003.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #55719 (Argument restriction should come with a more specific error message)
! 3: --FILE--
! 4: <?php
! 5: class Foo {
! 6: }
! 7:
! 8: Abstract Class Base {
! 9: public function test(Foo $foo, array $bar, $option = NULL, $extra = "lllllllllllllllllllllllllllllllllllllllllllllllllll") {
! 10: }
! 11: }
! 12:
! 13: class Sub extends Base {
! 14: public function test() {
! 15: }
! 16: }
! 17: ?>
! 18: --EXPECTF--
! 19: Strict Standards: Declaration of Sub::test() should be compatible with Base::test(Foo $foo, array $bar, $option = NULL, $extra = 'llllllllll...') in %sargument_restriction_003.php on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>