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

ExtensionRegistryHelperTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetSingleton() 0 5 1
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