All Unit tests
Current file: C:\code\midiparser\src\Midi\Parsing\DeltaParser.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% 3 / 3
 
Midi\DeltaParser
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 2 / 2
100.00%100.00%
100.00% 3 / 3
 public function getDeltaChunk($ticks)
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 1 / 1
 public function parse()
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 1 / 1


       1                 : <?php                                                                
       2                 :                                                                      
       3                 :     /**                                                              
       4                 :      * \Midi\Parsing\DeltaParser                                     
       5                 :      *                                                               
       6                 :      * @package   Midi                                               
       7                 :      * @copyright © 2009 Tommy Montgomery <http://phpmidiparser.com/>
       8                 :      * @since     1.0                                                
       9                 :      */                                                              
      10                 :                                                                      
      11                 :     namespace Midi\Parsing;                                          
      12                 :                                                                      
      13                 :     use \Midi\Delta;                                                 
      14                 :                                                                      
      15                 :     /**                                                              
      16                 :      * Class for parsing delta times                                 
      17                 :      *                                                               
      18                 :      * @package Midi                                                 
      19                 :      * @since   1.0                                                  
      20                 :      */                                                              
      21               1 :     class DeltaParser extends Parser {                               
      22                 :                                                                      
      23                 :         /**                                                          
      24                 :          * Creates a Delta object                                    
      25                 :          *                                                           
      26                 :          * @since 1.0                                                
      27                 :          *                                                           
      28                 :          * @param  int $ticks The number of MIDI clock ticks         
      29                 :          * @return Delta                                             
      30                 :          */                                                          
      31                 :         public function getDeltaChunk($ticks) {                      
      32               1 :             return new Delta($ticks);                                
      33                 :         }                                                            
      34                 :                                                                      
      35                 :         /**                                                          
      36                 :          * @since 1.0                                                
      37                 :          * @uses  getDeltaChunk()                                    
      38                 :          * @uses  getDelta()                                         
      39                 :          *                                                           
      40                 :          * @return Chunk                                             
      41                 :          */                                                          
      42                 :         public function parse() {                                    
      43               1 :             return $this->getDeltaChunk($this->getDelta());          
      44                 :         }                                                            
      45                 :                                                                      
      46                 :     }                                                                
      47                 :                                                                      

Generated by PHPUnit 3.4.1 and Xdebug 2.0.5 using PHP 5.3.0 at Sun Oct 25 23:35:09 PDT 2009.