wiki.techinc.nl/tests/phpunit/data/helpers/WellProtectedClass.php
Adam Roses Wight c46ee213f0 Fix TestingAccessWrapper::__call
We were only passing the first parameter to the wrapped object's methods.

Change-Id: I27a69d1cc1b2d048e44514af8b4ac79d7ee1fb85
2015-03-26 09:26:01 +00:00

21 lines
324 B
PHP

<?php
class WellProtectedClass {
protected $property;
public function __construct() {
$this->property = 1;
}
protected function incrementPropertyValue() {
$this->property++;
}
public function getProperty() {
return $this->property;
}
protected function whatSecondArg( $a, $b = false ) {
return $b;
}
}