1<?php 2namespace Foo; 3 4class CoveredParentClass 5{ 6 private function privateMethod() 7 { 8 } 9 10 protected function protectedMethod() 11 { 12 $this->privateMethod(); 13 } 14 15 public function publicMethod() 16 { 17 $this->protectedMethod(); 18 } 19} 20 21class CoveredClass extends CoveredParentClass 22{ 23 private function privateMethod() 24 { 25 } 26 27 protected function protectedMethod() 28 { 29 parent::protectedMethod(); 30 $this->privateMethod(); 31 } 32 33 public function publicMethod() 34 { 35 parent::publicMethod(); 36 $this->protectedMethod(); 37 } 38} 39