Completed
Push — master ( b07279...6566ea )
by mw
07:15 queued 04:57
created

JsonTestCaseScriptRunnerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTestCaseLocation() 0 3 1
1
<?php
2
3
namespace SRF\Tests\Integration\JSONScript;
4
5
use SMW\Tests\Integration\JSONScript\JsonTestCaseScriptRunnerTest as SMWJsonTestCaseScriptRunnerTest;
6
7
/**
8
 * @see https://github.com/SemanticMediaWiki/SemanticMediaWiki/tree/master/tests#write-integration-tests-using-json-script
9
 *
10
 * `JsonTestCaseScriptRunner` provisioned by SMW is a base class allowing to use a JSON
11
 * format to create test definitions with the objective to compose "real" content
12
 * and test integration with MediaWiki, Semantic MediaWiki, and Scribunto.
13
 *
14
 * The focus is on describing test definitions with its content and specify assertions
15
 * to control the expected base line.
16
 *
17
 * `JsonTestCaseScriptRunner` will handle the tearDown process and ensures that no test
18
 * data are leaked into a production system but requires an active DB connection.
19
 *
20
 * @group SRF
21
 * @group SMWExtension
22
 *
23
 * @license GNU GPL v2+
24
 * @since 2.5
25
 *
26
 * @author mwjames
27
 */
28
class JsonTestCaseScriptRunnerTest extends SMWJsonTestCaseScriptRunnerTest {
29
30
	/**
31
	 * @see \SMW\Tests\JsonTestCaseScriptRunner::getTestCaseLocation
32
	 * @return string
33
	 */
34
	protected function getTestCaseLocation() {
35
		return __DIR__ . '/TestCases';
36
	}
37
}
38