diff --git a/tests/thinkphp/library/think/templateTest.php b/tests/thinkphp/library/think/templateTest.php index dad34f99..9b21028f 100644 --- a/tests/thinkphp/library/think/templateTest.php +++ b/tests/thinkphp/library/think/templateTest.php @@ -314,7 +314,7 @@ EOF; $this->assertEquals($data, $content); } - public function testDisplay() + public function testFetch() { $template = new Template(); $template->assign('name', 'name'); @@ -325,11 +325,11 @@ EOF; 'display_cache' => true, ]; $data = ['name' => 'value']; - $template->layout('layout')->display('display', $data, $config); + $template->layout('layout')->fetch('display', $data, $config); $this->expectOutputString('value'); } - public function testFetch() + public function testDisplay() { $config['view_path'] = dirname(__FILE__) . '/'; $config['view_suffix'] = '.html'; @@ -382,7 +382,7 @@ value: php code EOF; - $template->fetch($content); + $template->display($content); $this->expectOutputString($content2); // $template->parse($content); // var_dump($content);