In phpunit and MediaWikiTestCase, the setUp method is protected,
and it's nice if the subclasses are consistent.
Change-Id: I4b8ac612951168913bb2dc9cf16d3dc18762a211
class AvroFormatterTest extends MediaWikiTestCase {
- public function setUp() {
+ protected function setUp() {
if ( !class_exists( 'AvroStringIO' ) ) {
$this->markTestSkipped( 'Avro is required for the AvroFormatterTest' );
}
class KafkaHandlerTest extends MediaWikiTestCase {
- public function setUp() {
+ protected function setUp() {
if ( !class_exists( 'Monolog\Handler\AbstractProcessingHandler' )
|| !class_exists( 'Kafka\Produce' )
) {
class LineFormatterTest extends MediaWikiTestCase {
- public function setUp() {
+ protected function setUp() {
if ( !class_exists( 'Monolog\Formatter\LineFormatter' ) ) {
$this->markTestSkipped( 'This test requires monolog to be installed' );
}