Merge "Add tests for WikiMap and WikiReference"
[lhc/web/wiklou.git] / tests / phpunit / data / helpers / WellProtectedClass.php
1 <?php
2
3 class WellProtectedParentClass {
4 private $privateParentProperty;
5
6 public function __construct() {
7 $this->privateParentProperty = 9000;
8 }
9
10 private function incrementPrivateParentPropertyValue() {
11 $this->privateParentProperty++;
12 }
13
14 public function getPrivateParentProperty() {
15 return $this->privateParentProperty;
16 }
17 }
18
19 class WellProtectedClass extends WellProtectedParentClass {
20 protected $property;
21 private $privateProperty;
22
23 public function __construct() {
24 parent::__construct();
25 $this->property = 1;
26 $this->privateProperty = 42;
27 }
28
29 protected function incrementPropertyValue() {
30 $this->property++;
31 }
32
33 private function incrementPrivatePropertyValue() {
34 $this->privateProperty++;
35 }
36
37 public function getProperty() {
38 return $this->property;
39 }
40
41 public function getPrivateProperty() {
42 return $this->privateProperty;
43 }
44
45 protected function whatSecondArg( $a, $b = false ) {
46 return $b;
47 }
48 }