[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/twilio-php/tests/resources/ -> NotificationTest.php (source)

   1  <?php
   2  
   3  use \Mockery as m;
   4  
   5  class NotificationTest extends PHPUnit_Framework_TestCase {
   6      function testDelete() {
   7          $http = m::mock(new Services_Twilio_TinyHttp);
   8          $http->shouldReceive('delete')->once()
   9              ->with('/2010-04-01/Accounts/AC123/Notifications/NO123.json')
  10              ->andReturn(array(204, array(), ''));
  11          $client = new Services_Twilio('AC123', '123', '2010-04-01', $http);
  12          $client->account->notifications->delete('NO123');
  13      }
  14  
  15      function tearDown()
  16      {
  17          m::close();
  18      }
  19  }
  20  


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1