DicFro Tests
Current file: D:\data\micmap\cgi-bin\dicfro\4.4.1\application\Model\Search\Gdfc.php
Legend: executed not executed dead code

  Coverage
  Classes Functions / Methods Lines
Total
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 2 / 2
100.00%100.00%
100.00% 4 / 4
 
Model_Search_Gdfc
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 2 / 2
100.00%100.00%
100.00% 4 / 4
 public function __construct($directory)
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 3 / 3
 public function setImageNumber($volume, $page, $ignored = null)
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 1 / 1


       1                 : <?php                                                                                                  
       2                 :                                                                                                        
       3                 : /**                                                                                                    
       4                 :  * Dictionaries of Old French and Latin                                                                
       5                 :  *                                                                                                     
       6                 :  * PHP 5                                                                                               
       7                 :  *                                                                                                     
       8                 :  * @category  Application                                                                              
       9                 :  * @package   DicFro                                                                                   
      10                 :  * @author    Michel Corne <mcorne@yahoo.com>                                                          
      11                 :  * @copyright 2008-2010 Michel Corne                                                                   
      12                 :  * @license   http://opensource.org/licenses/gpl-3.0.html GNU General Public License, version 3 (GPLv3)
      13                 :  * @link      http://www.micmap.org/dicfro                                                             
      14                 :  */                                                                                                    
      15                 :                                                                                                        
      16                 : require_once 'Model/Query/Gdfc.php';                                                                   
      17                 : require_once 'Model/Search/GdfLike.php';                                                               
      18                 :                                                                                                        
      19                 : /**                                                                                                    
      20                 :  * Search the Godefroy complement                                                                      
      21                 :  *                                                                                                     
      22                 :  * @category  Application                                                                              
      23                 :  * @package   DicFro                                                                                   
      24                 :  * @author    Michel Corne <mcorne@yahoo.com>                                                          
      25                 :  * @copyright 2008-2010 Michel Corne                                                                   
      26                 :  * @license   http://opensource.org/licenses/gpl-3.0.html GNU General Public License, version 3 (GPLv3)
      27                 :  */                                                                                                    
      28                 :                                                                                                        
      29                 : class Model_Search_Gdfc extends Model_Search_GdfLike                                                   
      30                 : {                                                                                                      
      31                 :                                                                                                        
      32                 :     /**                                                                                                
      33                 :      * Name of the Godefroy complement                                                                 
      34                 :      * @var string                                                                                     
      35                 :      */                                                                                                
      36                 :     public $dictionary = 'gdfc';                                                                       
      37                 :                                                                                                        
      38                 :     /**                                                                                                
      39                 :      * Template of the image file names                                                                
      40                 :      * @var string                                                                                     
      41                 :      */                                                                                                
      42                 :     public $imagePath = 'dictionary/gdfc/mImg/%s.gif';                                                 
      43                 :                                                                                                        
      44                 :     /**                                                                                                
      45                 :      * Template of the errata file names                                                               
      46                 :      * @var string                                                                                     
      47                 :      */                                                                                                
      48                 :     public $errataFiles = 'dictionary/gdfc/mPimg-3/%s-%s[a-z]*/*.gif';                                 
      49                 :                                                                                                        
      50                 :     /**                                                                                                
      51                 :      * Requires the errata files                                                                       
      52                 :      * @var boolean                                                                                    
      53                 :      */                                                                                                
      54                 :     public $needErrataImages = true;                                                                   
      55                 :                                                                                                        
      56                 :     /**                                                                                                
      57                 :      * Requires the search in the ghost words                                                          
      58                 :      * @var boolean                                                                                    
      59                 :      */                                                                                                
      60                 :     public $needGhostwords = true;                                                                     
      61                 :                                                                                                        
      62                 :     /**                                                                                                
      63                 :      * Requires the search in the Tobler                                                               
      64                 :      * @var boolean                                                                                    
      65                 :      */                                                                                                
      66                 :     public $needTobler = true;                                                                         
      67                 :                                                                                                        
      68                 :     /**                                                                                                
      69                 :      * Requires the search in the Tcaf                                                                 
      70                 :      * @var boolean                                                                                    
      71                 :      */                                                                                                
      72                 :     public $needTcaf = true;                                                                           
      73                 :                                                                                                        
      74                 :     /**                                                                                                
      75                 :      * Construtor                                                                                      
      76                 :      *                                                                                                 
      77                 :      * @param  string $directory  the dictionaries directory                                           
      78                 :      * @return void                                                                                    
      79                 :      */                                                                                                
      80                 :     public function __construct($directory)                                                            
      81                 :     {                                                                                                  
      82               2 :         $this->directory = $directory;                                                                 
      83               2 :         $this->query = new Model_Query_Gdfc($directory);                                               
      84               2 :     }                                                                                                  
      85                 :                                                                                                        
      86                 :     /**                                                                                                
      87                 :      * Sets the image number from the volume and page numbers                                          
      88                 :      *                                                                                                 
      89                 :      * @param  string  $volume the dictionary volume                                                   
      90                 :      * @param  string  $page   the page in the volume to go from                                       
      91                 :      * @return string  the image number                                                                
      92                 :      */                                                                                                
      93                 :     public function setImageNumber($volume, $page, $ignored = null)                                    
      94                 :     {                                                                                                  
      95               1 :         return parent::setImageNumber($volume, $page, 1);                                              
      96                 :     }                                                                                                  

Generated by PHPUnit 3.4.15 and Xdebug 2.1.0 using PHP 5.2.11 at Fri Oct 1 18:50:14 UTC 2010.