コード例 #1
0
 public function testSetMainTemplateBroken()
 {
     $o = new testView();
     $t = '';
     try {
         $o->setMainTemplate($t);
     } catch (\Exception $e) {
         $this->assertInstanceOf(Exception::class, $e);
         $this->assertInstanceOf(ExceptionPath::class, $e);
     }
     $this->assertEmpty($o->getMainTemplate());
 }
コード例 #2
0
 public function testGetMainTemplateEmpty()
 {
     $o = new testView();
     $path = $o->getMainTemplate();
     $this->assertEmpty($path);
 }