setUpSmarty(__DIR__); } /** * test simple assignByRef */ public function testSimpleAssignByRef() { $bar = 'bar'; $this->smarty->assignByRef('foo', $bar); $bar = 'newbar'; $this->assertEquals('newbar', $this->smarty->fetch('eval:{$foo}')); } }