tests: Use ::class rather than string class name
Change-Id: I50cf50e93917ba81fa846a7ea50ac2883e3167e5
This commit is contained in:
parent
bd0f1b8c78
commit
fe94d1b39a
3 changed files with 4 additions and 4 deletions
|
|
@ -29,7 +29,7 @@ use Wikimedia\AtEase\AtEase;
|
|||
class AvroFormatterTest extends \MediaWikiUnitTestCase {
|
||||
|
||||
protected function setUp() : void {
|
||||
if ( !class_exists( 'AvroStringIO' ) ) {
|
||||
if ( !class_exists( \AvroStringIO::class ) ) {
|
||||
$this->markTestSkipped( 'Avro is required for the AvroFormatterTest' );
|
||||
}
|
||||
parent::setUp();
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ use Monolog\Logger;
|
|||
class KafkaHandlerTest extends \MediaWikiUnitTestCase {
|
||||
|
||||
protected function setUp() : void {
|
||||
if ( !class_exists( 'Monolog\Handler\AbstractProcessingHandler' )
|
||||
|| !class_exists( 'Kafka\Produce' )
|
||||
if ( !class_exists( \Monolog\Handler\AbstractProcessingHandler::class )
|
||||
|| !class_exists( \Kafka\Produce::class )
|
||||
) {
|
||||
$this->markTestSkipped( 'Monolog and Kafka are required for the KafkaHandlerTest' );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ use Wikimedia\TestingAccessWrapper;
|
|||
class LineFormatterTest extends \MediaWikiUnitTestCase {
|
||||
|
||||
protected function setUp() : void {
|
||||
if ( !class_exists( 'Monolog\Formatter\LineFormatter' ) ) {
|
||||
if ( !class_exists( \Monolog\Formatter\LineFormatter::class ) ) {
|
||||
$this->markTestSkipped( 'This test requires monolog to be installed' );
|
||||
}
|
||||
parent::setUp();
|
||||
|
|
|
|||
Loading…
Reference in a new issue