Expected Test Failure Report for Zend/tests/access_modifiers_008.phpt ('Inconsistencies when accessing protected members')
Script
1:
<?php 2: 3: class A { 4: static protected function f() {return 'A::f()';} 5: } 6: class B1 extends A { 7: static protected function f() {return 'B1::f()';} 8: } 9: class B2 extends A { 10: static public function test() {echo B1::f();} 11: } 12: B2::test(); 13: 14: ?> 15:
Expected
Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
Output
B1::f()
Diff
001+ B1::f()
001- Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
Generated at Sun, 19 May 2013 20:27:25 +0000 (3 days ago)
|