Expected Test Failure Report for Zend/tests/access_modifiers_009.phpt ('Inconsistencies when accessing protected members - 2')
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() { 11: var_dump(is_callable('B1::f')); 12: B1::f(); 13: } 14: } 15: B2::test(); 16: 17: ?> 18:
Expected
bool(false)
Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
Output
bool(false)
Diff
002-
003- Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
Generated at Fri, 17 May 2013 23:23:52 +0000 (3 days ago)
|