All Unit tests
Current file: C:\code\midiparser\src\Midi\Event\TrackNameEvent.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\TrackNameEvent
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 getParamDescription()
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 1 / 1
 public function getSubtype()
100.00%100.00%
100.00% 1 / 1
100.00%100.00%
100.00% 1 / 1


       1                 : <?php                                                                 
       2                 :                                                                       
       3                 :     /**                                                               
       4                 :      * \Midi\Event\TrackNameEvent                                     
       5                 :      *                                                                
       6                 :      * @package    Midi                                               
       7                 :      * @subpackage Event                                              
       8                 :      * @copyright  © 2009 Tommy Montgomery <http://phpmidiparser.com/>
       9                 :      * @since      1.0                                                
      10                 :      */                                                               
      11                 :                                                                       
      12                 :     namespace Midi\Event;                                             
      13                 :                                                                       
      14                 :     /**                                                               
      15                 :      * Represents a track name meta event                             
      16                 :      *                                                                
      17                 :      * This event just names the track. There should only be          
      18                 :      * one per track.                                                 
      19                 :      *                                                                
      20                 :      * @package    Midi                                               
      21                 :      * @subpackage Event                                              
      22                 :      * @since      1.0                                                
      23                 :      */                                                               
      24               1 :     class TrackNameEvent extends MetaEvent {                          
      25                 :                                                                       
      26                 :         /**                                                           
      27                 :          * @since 1.0                                                 
      28                 :          *                                                            
      29                 :          * @return string                                             
      30                 :          */                                                           
      31                 :         public function getParamDescription() {                       
      32               1 :             return $this->data;                                       
      33                 :         }                                                             
      34                 :                                                                       
      35                 :         /**                                                           
      36                 :          * @since 1.0                                                 
      37                 :          * @uses  MetaEventType::TRACK_NAME                           
      38                 :          *                                                            
      39                 :          * @return int                                                
      40                 :          */                                                           
      41                 :         public function getSubtype() {                                
      42               1 :             return MetaEventType::TRACK_NAME;                         
      43                 :         }                                                             
      44                 :                                                                       
      45                 :     }                                                                 
      46                 :                                                                       

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.