blob: 8e4be5e7b64d5a73e443c027b17f62132a8c7682 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
namespace SMW\Tests\SPARQLStore\QueryEngine;
use SMW\SPARQLStore\QueryEngine\DescriptionInterpreterFactory;
/**
* @covers \SMW\SPARQLStore\QueryEngine\DescriptionInterpreterFactory
* @group semantic-mediawiki
*
* @license GNU GPL v2+
* @since 2.5
*
* @author mwjames
*/
class DescriptionInterpreterFactoryTest extends \PHPUnit_Framework_TestCase {
public function testCanConstruct() {
$this->assertInstanceOf(
'\SMW\SPARQLStore\QueryEngine\DescriptionInterpreterFactory',
new DescriptionInterpreterFactory()
);
}
public function testCanConstructDispatchingDescriptionInterpreter() {
$conditionBuilder = $this->getMockBuilder( '\SMW\SPARQLStore\QueryEngine\ConditionBuilder' )
->disableOriginalConstructor()
->getMock();
$instance = new DescriptionInterpreterFactory();
$this->assertInstanceOf(
'\SMW\SPARQLStore\QueryEngine\DescriptionInterpreters\DispatchingDescriptionInterpreter',
$instance->newDispatchingDescriptionInterpreter( $conditionBuilder )
);
}
}
|