wiki.techinc.nl/tests/phpunit/includes/debug/TestDeprecatedSubclass.php
Gergő Tisza a015ee72ae
Fix class name handling in DeprecationHelper
The method for getting the declaring class name was not used when
printing the class name, and was incorrect anyway. Use reflection
when on the error path to ensure the correct class name is used.

Change-Id: Ic9cd4319535d5ab877a0563e0433371e1025d985
2019-04-19 01:09:25 -07:00

23 lines
526 B
PHP

<?php
class TestDeprecatedSubclass extends TestDeprecatedClass {
private $subclassPrivateNondeprecated = 1;
public function getDeprecatedPrivateParentProperty() {
return $this->privateDeprecated;
}
public function setDeprecatedPrivateParentProperty( $value ) {
$this->privateDeprecated = $value;
}
public function getNondeprecatedPrivateParentProperty() {
return $this->privateNonDeprecated;
}
public function setNondeprecatedPrivateParentProperty( $value ) {
$this->privateNonDeprecated = $value;
}
}