RestException.php
Current file: /Users/kevin/code/twilio-php/Services/Twilio/RestException.php
Legend: executed not executed dead code

  Coverage
  Classes Functions / Methods Lines
Total
0.00% 0 / 1
33.33% 1 / 3 CRAP
66.67% 4 / 6
Services_Twilio_RestException
0.00% 0 / 1
33.33% 1 / 3 3.33
66.67% 4 / 6
 __construct($status, $message, $code = 0, $info = '')
100.00% 1 / 1 1
100.00% 4 / 4
 getStatus()
0.00% 0 / 1 2
0.00% 0 / 1
 getInfo()
0.00% 0 / 1 2
0.00% 0 / 1


       1                 : <?php                                                                    
       2                 :                                                                          
       3                 : class Services_Twilio_RestException                                      
       4                 :     extends Exception                                                    
       5                 : {                                                                        
       6                 :     protected $status;                                                   
       7                 :     protected $info;                                                     
       8                 :                                                                          
       9                 :     public function __construct($status, $message, $code = 0, $info = '')
      10                 :     {                                                                    
      11               2 :         $this->status = $status;                                         
      12               2 :         $this->info = $info;                                             
      13               2 :         parent::__construct($message, $code);                            
      14               2 :     }                                                                    
      15                 :                                                                          
      16                 :     public function getStatus()                                          
      17                 :     {                                                                    
      18               0 :         return $this->status;                                            
      19                 :     }                                                                    
      20                 :                                                                          
      21                 :     public function getInfo()                                            
      22                 :     {                                                                    
      23               0 :         return $this->info;                                              
      24                 :     }                                                                    
      25                 : }                                                                        

Generated by PHP_CodeCoverage 1.1.2 using PHP 5.3.13 and PHPUnit 3.6.11 at Mon Jun 4 22:46:14 PDT 2012.