Paragonik/paragonik-backend/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php
2019-12-07 16:47:41 +01:00

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