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

  Coverage
  Classes Functions / Methods Lines
Total
100.00% 1 / 1
100.00% 2 / 2 CRAP
100.00% 9 / 9
Services_Twilio_Rest_SmsMessages
100.00% 1 / 1
100.00% 2 / 2 2
100.00% 9 / 9
 getSchema()
100.00% 1 / 1 1
100.00% 5 / 5
 create($from, $to, $body, array $params = array()
100.00% 1 / 1 1
100.00% 4 / 4


       1                 : <?php                                                          
       2                 :                                                                
       3                 : class Services_Twilio_Rest_SmsMessages                         
       4                 :     extends Services_Twilio_ListResource                       
       5                 : {                                                              
       6                 :     public function getSchema()                                
       7                 :     {                                                          
       8                 :         return array(                                          
       9               3 :             'class' => 'Services_Twilio_Rest_SmsMessages',     
      10               3 :             'basename' => 'SMS/Messages',                      
      11               3 :             'instance' => 'Services_Twilio_Rest_SmsMessage',   
      12               3 :             'list' => 'sms_messages',                          
      13               3 :         );                                                     
      14                 :     }                                                          
      15                 :                                                                
      16                 :     function create($from, $to, $body, array $params = array())
      17                 :     {                                                          
      18               2 :         return parent::_create(array(                          
      19               2 :             'From' => $from,                                   
      20               2 :             'To' => $to,                                       
      21                 :             'Body' => $body                                    
      22               2 :         ) + $params);                                          
      23                 :     }                                                          
      24                 : }                                                              

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.