diff options
author | Phie <phie@phie.ovh> | 2018-08-21 18:39:12 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2018-08-21 18:39:12 +0300 |
commit | 7d24cc0120859fc4e46b301c08effc97ddfbb1bb (patch) | |
tree | 94b5b52074022ceccd4c91073f217feaec38ca40 /vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php |
first commit for Carnet NC server
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(); + } +} |