public function testInvalidTemplateFilename() { $tm = new TemplatesManager(); $tm->addTemplate('some', 'invalid-file'); $this->setExpectedException('RuntimeException', "Invalid template filename with name \"some\""); $tm->getTemplate('some'); }
public function testSetTemplatesManager() { $templatesManager = new TemplatesManager(); $templatesManager->addTemplate('my', __FILE__); $this->provider->setTemplatesManager($templatesManager); $this->assertTrue($this->provider->getTemplatesManager()->hasTemplate('my')); }