Dwoo - Unit Tests Report
Current file: /dwoo/lib/Dwoo/Compilation/Exception.php
Legend: executed not executed dead code

  Coverage
  Classes Functions / Methods Lines
Total
100.00%100.00%
100.00% 1 / 1
33.33%33.33%
33.33% 1 / 3
66.67%66.67%
66.67% 4 / 6
 
Dwoo_Compilation_Exception
100.00%100.00%
100.00% 1 / 1
33.33%33.33%
33.33% 1 / 3
66.67%66.67%
66.67% 4 / 6
 public function __construct(Dwoo_Compiler $compiler, $message)
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 4 / 4
 public function getCompiler()
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 1
 public function getTemplate()
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 1



       1                 : <?php                                                                                                                                                                                  
       2                 :                                                                                                                                                                                        
       3                 : /**                                                                                                                                                                                    
       4                 :  * dwoo compilation exception class                                                                                                                                                    
       5                 :  *                                                                                                                                                                                     
       6                 :  * This software is provided 'as-is', without any express or implied warranty.                                                                                                         
       7                 :  * In no event will the authors be held liable for any damages arising from the use of this software.                                                                                  
       8                 :  *                                                                                                                                                                                     
       9                 :  * @author     Jordi Boggiano <j.boggiano@seld.be>                                                                                                                                     
      10                 :  * @copyright  Copyright (c) 2008, Jordi Boggiano                                                                                                                                      
      11                 :  * @license    http://dwoo.org/LICENSE   Modified BSD License                                                                                                                          
      12                 :  * @link       http://dwoo.org/                                                                                                                                                        
      13                 :  * @version    1.0.0                                                                                                                                                                   
      14                 :  * @date       2008-10-23                                                                                                                                                              
      15                 :  * @package    Dwoo                                                                                                                                                                    
      16                 :  */                                                                                                                                                                                    
      17                 : class Dwoo_Compilation_Exception extends Dwoo_Exception                                                                                                                                
      18                 : {                                                                                                                                                                                      
      19                 :     protected $compiler;                                                                                                                                                               
      20                 :     protected $template;                                                                                                                                                               
      21                 :                                                                                                                                                                                        
      22                 :     public function __construct(Dwoo_Compiler $compiler, $message)                                                                                                                     
      23                 :     {                                                                                                                                                                                  
      24               9 :         $this->compiler = $compiler;                                                                                                                                                   
      25               9 :         $this->template = $compiler->getDwoo()->getTemplate();                                                                                                                         
      26               9 :         parent::__construct('Compilation error at line '.$compiler->getLine().' in "'.$this->template->getResourceName().':'.$this->template->getResourceIdentifier().'" : '.$message);
      27               9 :     }                                                                                                                                                                                  
      28                 :                                                                                                                                                                                        
      29                 :     public function getCompiler()                                                                                                                                                      
      30                 :     {                                                                                                                                                                                  
      31               0 :         return $this->compiler;                                                                                                                                                        
      32                 :     }                                                                                                                                                                                  
      33                 :                                                                                                                                                                                        
      34                 :     public function getTemplate()                                                                                                                                                      
      35                 :     {                                                                                                                                                                                  
      36               0 :         return $this->template;                                                                                                                                                        
      37                 :     }                                                                                                                                                                                  
      38                 : }                                                                                                                                                                                      


Generated by PHPUnit @package_version@ and Xdebug 2.1.0beta2-dev using PHP 5.3.0 at Sun Feb 7 16:30:52 UTC 2010.