Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113246715
NotificationTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 16, 13:48
Size
541 B
Mime Type
text/x-php
Expires
Sun, May 18, 13:48 (1 d, 15 h)
Engine
blob
Format
Raw Data
Handle
26203063
Attached To
rPH Phabricator
NotificationTest.php
View Options
<?php
use
\Mockery
as
m
;
class
NotificationTest
extends
PHPUnit_Framework_TestCase
{
function
testDelete
()
{
$http
=
m
::
mock
(
new
Services_Twilio_TinyHttp
);
$http
->
shouldReceive
(
'delete'
)->
once
()
->
with
(
'/2010-04-01/Accounts/AC123/Notifications/NO123.json'
)
->
andReturn
(
array
(
204
,
array
(),
''
));
$client
=
new
Services_Twilio
(
'AC123'
,
'123'
,
'2010-04-01'
,
$http
);
$client
->
account
->
notifications
->
delete
(
'NO123'
);
}
function
tearDown
()
{
m
::
close
();
}
}
Event Timeline
Log In to Comment