I have monolog installed but not Kafka, so still
the test was run and broken for me.
Change-Id: If396815d77b0ae25fbd5c16b628f217478062b43
class KafkaHandlerTest extends MediaWikiTestCase {
public function setUp() {
- if ( !class_exists( 'Monolog\Handler\AbstractProcessingHandler' ) ) {
- $this->markTestSkipped( 'Monolog is required for the KafkaHandlerTest' );
+ if ( !class_exists( 'Monolog\Handler\AbstractProcessingHandler' )
+ || !class_exists( 'Kafka\Produce' )
+ ) {
+ $this->markTestSkipped( 'Monolog and Kafka are required for the KafkaHandlerTest' );
}
+
parent::setUp();
}