Passed
Pull Request — master (#136)
by None
04:14
created

CitationTextTemplateRendererTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SCI\Tests;
4
5
use SCI\CitationTextTemplateRenderer;
6
7
/**
8
 * @covers \SCI\CitationTextTemplateRenderer
9
 * @group semantic-cite
10
 *
11
 * @license GNU GPL v2+
12
 * @since   1.0
13
 *
14
 * @author mwjames
15
 */
16
class CitationTextTemplateRendererTest extends \PHPUnit_Framework_TestCase {
17
18
	public function testCanConstruct() {
19
20
		$wikitextTemplateRenderer = $this->getMockBuilder( '\SMW\MediaWiki\Renderer\WikitextTemplateRenderer' )
21
			->disableOriginalConstructor()
22
			->getMock();
23
24
		$parser = $this->getMockBuilder( '\Parser' )
25
			->disableOriginalConstructor()
26
			->getMock();
27
28
		$this->assertInstanceOf(
29
			'\SCI\CitationTextTemplateRenderer',
30
			new CitationTextTemplateRenderer( $wikitextTemplateRenderer, $parser )
31
		);
32
	}
33
34
}
35