hajtest
Current file: D:\websites\haj\application\views\helpers\WorkshopSelectBox.php
Legend: executed not executed dead code

  Coverage
  Classes Functions / Methods Lines
Total
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 2
0.00%0.00%
0.00% 0 / 11
 
Zend_View_Helper_WorkshopSelectBox
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 2
0.00%0.00%
0.00% 0 / 10
 function setView($view)
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 2
 function workshopSelectBox(Doctrine_Collection $workshops)
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 7


       1                 :                                                                                                        
       2               0 : <?php                                                                                                  
       3                 :                                                                                                        
       4               0 : class Zend_View_Helper_WorkshopSelectBox {                                                             
       5                 :                                                                                                        
       6                 :     public $view;                                                                                      
       7                 :                                                                                                        
       8                 :     function setView($view) {                                                                          
       9               0 :         $this->view = $view;                                                                           
      10               0 :     }                                                                                                  
      11                 :                                                                                                        
      12                 :     function workshopSelectBox(Doctrine_Collection $workshops) {                                       
      13               0 :         $options = array();                                                                            
      14               0 :         foreach ($workshops as $workshop) {                                                            
      15               0 :             $days = HAJ_Helpers::diffDate($workshop->start_date, $workshop->end_date);                 
      16               0 :             $start_d = date('d M Y', strtotime($workshop->start_date));                                
      17               0 :             $options[$workshop->id] = "$start_d  - $days days";                                        
      18               0 :         }                                                                                              
      19                 :       //  echo $this->formSelect('workshop', null, null, $options);                                    
      20               0 :         return $this->view->formSelect('workshop', null, array('class' => 'workshop-dates'), $options);
					
      21                 :     }                                                                                                  
      22                 :                                                                                                        

Generated by PHPUnit 3.4.15 and Xdebug 2.1.0rc1 using PHP 5.3.1 at Mon Jan 17 15:42:18 PST 2011.