Completed
Pull Request — master (#319)
by mw
01:54
created

ResourceFormatterTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testSession() 0 7 1
A testPlaceholder() 0 7 1
1
<?php
2
3
namespace SRF\Tests;
4
5
use SRF\ResourceFormatter;
6
7
/**
8
 * @covers \SRF\ResourceFormatter
9
 * @group semantic-result-formats
10
 *
11
 * @license GNU GPL v2+
12
 * @since 3.0
13
 *
14
 * @author mwjames
15
 */
16
class ResourceFormatterTest extends \PHPUnit_Framework_TestCase {
17
18
	public function testSession() {
19
20
		$this->assertContains(
21
			'smw-',
22
			ResourceFormatter::session()
23
		);
24
	}
25
26
	public function testPlaceholder() {
27
28
		$this->assertInternalType(
29
			'string',
30
			ResourceFormatter::placeholder()
31
		);
32
	}
33
34
}
35