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

  Coverage
  Classes Functions / Methods Lines
Total
0.00% 0 / 1
66.67% 2 / 3 CRAP
75.00% 6 / 8
Services_Twilio_Rest_Call
0.00% 0 / 1
66.67% 2 / 3 3.14
75.00% 6 / 8
 hangup()
100.00% 1 / 1 1
100.00% 2 / 2
 route($url)
0.00% 0 / 1 2
0.00% 0 / 2
 init()
100.00% 1 / 1 1
100.00% 4 / 4


       1                 : <?php                                        
       2                 :                                              
       3                 : class Services_Twilio_Rest_Call              
       4                 :     extends Services_Twilio_InstanceResource 
       5                 : {                                            
       6                 :     public function hangup()                 
       7                 :     {                                        
       8               1 :         $this->update('Status', 'completed');
       9               1 :     }                                        
      10                 :                                              
      11                 :     public function route($url) {            
      12               0 :         $this->update('Url', $url);          
      13               0 :     }                                        
      14                 :                                              
      15                 :     protected function init()                
      16                 :     {                                        
      17               8 :         $this->setupSubresources(            
      18               8 :             'notifications',                 
      19                 :             'recordings'                     
      20               8 :         );                                   
      21               8 :     }                                        
      22                 : }                                            

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.