]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/_files/CoveredClass.php
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / _files / CoveredClass.php
1 <?php
2 class 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
19 class 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 }
37