123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace Foo;
- 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();
- }
- }
|