Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94234539
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
Wed, Dec 4, 23:58
Size
541 B
Mime Type
text/x-php
Expires
Fri, Dec 6, 23:58 (2 d)
Engine
blob
Format
Raw Data
Handle
22754857
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