BBnepal-Accounts/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

39 lines
603 B
PHP

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