12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- class CoveredParentClass
- {
- private function privateMethod()
- {
- }
- protected function protectedMethod()
- {
- $this->privateMethod();
- }
- public function publicMethod()
- {
- $this->protectedMethod();
- }
- }
- class CoveredClass extends CoveredParentClass
- {
- private function privateMethod()
- {
- }
- protected function protectedMethod()
- {
- parent::protectedMethod();
- $this->privateMethod();
- }
- public function publicMethod()
- {
- parent::publicMethod();
- $this->protectedMethod();
- }
- }
|