Zend Framework Unit Test Demo
Current file: /Users/dragonbe/workspace/zfunittest/application/models/Guestbook.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 / 5
0.00%0.00%
0.00% 0 / 10
 
Application_Model_Guestbook
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 5
0.00%0.00%
0.00% 0 / 10
 public function __construct()
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 3
 public function addEntry(Application_Model_GuestbookEntry $entry)
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 3
 public function hasEntries()
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 1
 public function getEntries()
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 1
 public function count()
0.00%0.00%
0.00% 0 / 1
0.00%0.00%
0.00% 0 / 1


       1                 : <?php                                                                
       2                 :                                                                      
       3               0 : class Application_Model_Guestbook implements Countable               
       4                 : {                                                                    
       5                 :     protected $_entries;                                             
       6                 :                                                                          
       7                 :     protected $_count;                                               
       8                 :                                                                          
       9                 :     public function __construct()                                    
      10                 :     {                                                                
      11               0 :         $this->_entries = array ();                                  
      12               0 :         $this->_count = 0;                                           
      13               0 :     }                                                                
      14                 :     public function addEntry(Application_Model_GuestbookEntry $entry)
      15                 :     {                                                                
      16               0 :         $this->_entries[] = $entry;                                  
      17               0 :         $this->_count++;                                             
      18               0 :         return $this;                                                
      19                 :     }                                                                
      20                 :     public function hasEntries()                                     
      21                 :     {                                                                
      22               0 :         return 0 !== $this->count();                                 
      23                 :     }                                                                
      24                 :     public function getEntries()                                     
      25                 :     {                                                                
      26               0 :         return $this->_entries;                                      
      27                 :     }                                                                
      28                 :     public function count()                                          
      29                 :     {                                                                
      30               0 :         return $this->_count;                                        
      31                 :     }                                                                

Generated by PHPUnit 3.4.15 and Xdebug 2.1.0 using PHP 5.3.2 at Wed Sep 15 23:39:30 CEST 2010.