PageRenderTime 16ms CodeModel.GetById 9ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/phpunit/php-code-coverage/tests/_files/CoveredClass.php

https://bitbucket.org/alan_cordova/api-sb-map
PHP | 36 lines | 31 code | 5 blank | 0 comment | 0 complexity | 3fb30247bee83f69ab4102b1debf0e3e MD5 | raw file
 1<?php
 2class CoveredParentClass
 3{
 4    private function privateMethod()
 5    {
 6    }
 7
 8    protected function protectedMethod()
 9    {
10        $this->privateMethod();
11    }
12
13    public function publicMethod()
14    {
15        $this->protectedMethod();
16    }
17}
18
19class CoveredClass extends CoveredParentClass
20{
21    private function privateMethod()
22    {
23    }
24
25    protected function protectedMethod()
26    {
27        parent::protectedMethod();
28        $this->privateMethod();
29    }
30
31    public function publicMethod()
32    {
33        parent::publicMethod();
34        $this->protectedMethod();
35    }
36}