Completed
Pull Request — master (#46)
by Jeroen De
08:12
created

CompoundQueryResultTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 11 1
A testCanConstruct() 0 7 1
1
<?php
2
3
namespace SCQ\Tests;
4
5
use SCQ\CompoundQueryResult;
6
7
/**
8
 * @covers \SCQ\CompoundQueryResult
9
 * @group semantic-compound-queries
10
 *
11
 * @license GNU GPL v2+
12
 * @since 1.0
13
 *
14
 * @author Peter Grassberger < [email protected] >
15
 */
16
class CompoundQueryResultTest extends \PHPUnit_Framework_TestCase {
17
18
	private $store;
19
	private $query;
20
21
	protected function setUp() {
22
		parent::setUp();
23
24
		$this->store = $this->getMockBuilder( '\SMW\Store' )
25
			->disableOriginalConstructor()
26
			->getMockForAbstractClass();
27
28
		$this->query = $this->getMockBuilder( '\SMWQuery' )
29
			->disableOriginalConstructor()
30
			->getMock();
31
	}
32
33
	public function testCanConstruct() {
34
35
		$this->assertInstanceOf(
36
			CompoundQueryResult::class,
37
			new CompoundQueryResult( [], $this->query, [], $this->store )
38
		);
39
	}
40
41
}
42