View类优化

This commit is contained in:
thinkphp
2016-03-14 14:02:37 +08:00
parent 2a9fb524a8
commit 06ba891ca4
3 changed files with 18 additions and 53 deletions

View File

@@ -132,16 +132,4 @@ class viewTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expect_data, $method->invoke($view_instance, 'template_name'));
}
/**
* 测试引擎设置
* @return mixed
* @access public
*/
public function testGetThemePath()
{
$view_instance = \think\View::instance();
$method = new \ReflectionMethod('\think\View', 'getThemePath');
$method->setAccessible(true);
$this->assertEquals(DS . 'theme_name' . DS, $method->invoke($view_instance));
}
}