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

getTestCaseLocation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
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