修正单元测试

This commit is contained in:
thinkphp
2016-03-15 22:27:16 +08:00
parent 14d692dfcd
commit a496cf3198
2 changed files with 3 additions and 3 deletions

View File

@@ -124,9 +124,9 @@ class viewTest extends \PHPUnit_Framework_TestCase
$method = new \ReflectionMethod('\think\View', 'ParseTemplate');
$method->setAccessible(true);
if (defined('CONTROLLER_NAME')) {
$expect_data = DS . 'theme_name' . DS . CONTROLLER_NAME . DS . 'template_name.html';
$expect_data = 'view_path' . 'theme_name' . DS . CONTROLLER_NAME . DS . 'template_name.html';
} else {
$expect_data = DS . 'theme_name' . DS . 'template_name.html';
$expect_data = 'view_path' . 'theme_name' . DS . 'template_name.html';
}
$this->assertEquals($expect_data, $method->invoke($view_instance, 'template_name'));
}