diff options
Diffstat (limited to 'vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php')
-rw-r--r-- | vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php new file mode 100644 index 0000000..5bd0ddf --- /dev/null +++ b/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php @@ -0,0 +1,38 @@ +<?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(); + } +} |