Passed
Push — master ( 4b461a...da1aaf )
by Stephan
02:35
created

ExtensionRegistryHelperTest::testGetSingleton()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace ExtensionRegistryHelper\Test;
3
4
use ExtensionRegistryHelper\ExtensionRegistryHelper;
5
use PHPUnit\Framework\TestCase;
6
7
/**
8
 * Class ExtensionRegistryHelperTest
9
 */
10
class ExtensionRegistryHelperTest extends TestCase {
11
12
	/**
13
	 * @throws \Exception
14
	 */
15
	public function testGetSingleton(){
16
17
		$GLOBALS[ 'wgVersion' ] = '1.27';
18
		$helper = ExtensionRegistryHelper::singleton();
19
		self::assertInstanceOf( ExtensionRegistryHelper::class, $helper );
20
	}
21
22
}
23