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