MediaWikiBoundTestCase::setUpBeforeClass()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace GitHub\Tests;
4
5
use PHPUnit\Framework\TestCase;
6
7
abstract class MediaWikiBoundTestCase extends TestCase {
8
9
	public static function setUpBeforeClass(): void {
10
		if ( !class_exists( 'Parser' ) ) {
11
			self::markTestSkipped( 'MediaWiki is not available' );
12
		}
13
	}
14
15
}
16