1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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();
- }
- }
|