Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F430410
NotificationTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
541 B
Referenced Files
None
Subscribers
None
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
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 10:28 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
60110
Default Alt Text
NotificationTest.php (541 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment