/** * Test adding templates through the constructor. * * @return void */ public function testConstructorAdd() { $templates = array('link' => '<a href="{{url}}">{{text}}</a>'); $template = new StringTemplate($templates); debug($template->config('link')); $this->assertEquals($templates['link'], $template->config('link')); }