Completed
Push — master ( 009f82...ffc788 )
by GIT
07:15
created

ValueRankTest::getFormats()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace SRF\Tests\Unit\Formats;
4
5
use SMW\Test\QueryPrinterRegistryTestCase;
6
use SRFValueRank;
7
8
/**
9
 * Tests for the SRFValueRank class.
10
 *
11
 * @file
12
 * @since 3.2
13
 *
14
 * @ingroup SemanticResultFormats
15
 * @ingroup Test
16
 *
17
 * @group SRF
18
 * @group SMWExtension
19
 * @group ResultPrinters
20
 *
21
 * @licence GNU GPL v2+
22
 * @author Sebastian Schmid < [email protected] >
23
 */
24
class ValueRankTest extends QueryPrinterRegistryTestCase {
25
26
	/**
27
	 * @see QueryPrinterRegistryTestCase::getFormats
28
	 *
29
	 * @since 3.2
30
	 *
31
	 * @return array
32
	 */
33
	public function getFormats() {
34
		return [ 'valuerank' ];
35
	}
36
37
	/**
38
	 * @see QueryPrinterRegistryTestCase::getClass
39
	 *
40
	 * @since 3.2
41
	 *
42
	 * @return string
43
	 */
44
	public function getClass() {
45
		return 'SRFValueRank';
46
	}
47
48
	public function testGetName() {
49
50
		$instance = new SRFValueRank(
51
			'valuerank'
52
		);
53
54
		$this->assertInternalType('string', $instance->getName());
0 ignored issues
show
Bug introduced by
Consider using $instance->name. There is an issue with getName() and APC-enabled PHP versions.
Loading history...
55
56
	}
57
58
}
59