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

ScribuntoLuaEngineTestBase::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 9.4285
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
}