Exemple #1
0
 public function testSetTemplateBroken()
 {
     $o = new testView();
     $t = '';
     try {
         $o->setTemplate($t);
     } catch (\Exception $e) {
         $this->assertInstanceOf(Exception::class, $e);
         $this->assertInstanceOf(ExceptionPath::class, $e);
     }
     $this->assertEmpty($o->getTemplate());
 }
Exemple #2
0
 public function testGetTemplateEmpty()
 {
     $o = new testView();
     $path = $o->getTemplate();
     $this->assertEmpty($path);
 }