Exemple #1
0
 public function testMissingViewScriptExceptionText()
 {
     $base = __DIR__ . DIRECTORY_SEPARATOR;
     $view = new View();
     $view->setScriptPath($base . '_templates');
     try {
         $view->render('bazbatNotExists.php.tpl');
         $this->fail('Non-existent view script should cause an exception');
     } catch (\Exception $e) {
         $this->assertContains($base . '_templates', $e->getMessage());
     }
 }