public function testVarGet() { $template = new Template(); $data = ['a' => 'a', 'b' => 'b']; $template->assign($data); $this->assertEquals($data, $template->get()); }
public function testVarAssign() { $template = new Template(); $template->assign('name', 'value'); $value = $template->get('name'); $this->assertEquals('value', $value); }