TestCase.php 298 Bytes
Newer Older
w  
Qiang Xue committed
1 2
<?php

Qiang Xue committed
3 4
namespace yiiunit;

w  
Qiang Xue committed
5 6
class TestCase extends \yii\test\TestCase
{
Qiang Xue committed
7
	public static $params;
w  
Qiang Xue committed
8

9
	public function getParam($name)
w  
Qiang Xue committed
10
	{
Qiang Xue committed
11 12
		if (self::$params === null) {
			self::$params = require(__DIR__ . '/data/config.php');
w  
Qiang Xue committed
13
		}
Qiang Xue committed
14
		return isset(self::$params[$name]) ? self::$params[$name] : null;
w  
Qiang Xue committed
15 16
	}
}