Completed
Push — master ( 498457...3132df )
by mw
02:32
created

ScribuntoLuaEngineTestBase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 8 1
A getScribuntoLuaLibrary() 0 3 1
1
<?php
2
3
namespace SMW\Scribunto\Tests;
4
5
use SMW\Scribunto\ScribuntoLuaLibrary;
6
7
/**
8
 * Encapsulation of the Scribunto_LuaEngineTestBase class
9
 *
10
 * @license GNU GPL v2+
11
 * @since 1.0
12
 *
13
 * @author mwjames
14
 */
15
abstract class ScribuntoLuaEngineTestBase extends \Scribunto_LuaEngineTestBase
16
{
17
	/**
18
	 * @var \SMW\Scribunto\ScribuntoLuaLibrary
19
	 */
20
	private $scribuntoLuaLibrary;
21
22
	protected function setUp() {
23
		parent::setUp();
24
25
		/** @noinspection PhpParamsInspection */
26
		$this->scribuntoLuaLibrary = new ScribuntoLuaLibrary(
27
			$this->getEngine()
28
		);
29
	}
30
31
	/**
32
	 * Accesses an instance of class {@see ScribuntoLuaLibrary}
33
	 *
34
	 * @return ScribuntoLuaLibrary ScribuntoLuaLibrary
35
	 */
36
	public function getScribuntoLuaLibrary() {
37
		return $this->scribuntoLuaLibrary;
38
	}
39
}