summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/queryprinters/RawResultPrinterTest.php
blob: bfd759d8c91addfecb510ebd7d2412b96d8321e2 (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
41
42
43
44
45
46
47
48
<?php

namespace SMW\Test;

use SMW\RawResultPrinter;

/**
 * @covers \SMW\RawResultPrinter
 *
 * @group SMW
 * @group SMWExtension
 *
 * @license GNU GPL v2+
 * @since   1.9
 *
 * @author mwjames
 */
class RawResultPrinterTest extends QueryPrinterTestCase {

	/**
	 * @return string|false
	 */
	public function getClass() {
		return '\SMW\RawResultPrinter';
	}

	/**
	 * @return RawResultPrinter
	 */
	private function getInstance( $parameters = [] ) {

		$instance = $this->getMockBuilder( '\SMW\RawResultPrinter' )
			->disableOriginalConstructor()
			->setConstructorArgs( [ 'api' ] )
			->getMockForAbstractClass();

		return $this->setParameters( $instance, $parameters );
	}

	public function testCanConstruct() {

		$this->assertInstanceOf(
			'\SMW\RawResultPrinter',
			$this->getInstance()
		);
	}

}