Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56381812
ApiServersLogTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
525 B
Referenced Files
None
Subscribers
None
ApiServersLogTest.php
View Options
<?php
require_once
'traits/assertHttp.php'
;
class
ApiServersLogTest
extends
PHPUnit_Framework_TestCase
{
use
assertHttp
;
public
function
testAlive
()
{
$url
=
'https://api.nasqueron.org/servers-log/status'
;
$this
->
assertHttpResponseCode
(
200
,
$url
);
$this
->
assertSame
(
'ALIVE'
,
file_get_contents
(
$url
));
}
public
function
testPutEntryPointWithGetRequestReturns405
()
{
$url
=
'https://api.nasqueron.org/servers-log'
;
$this
->
assertHttpResponseCode
(
405
,
$url
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 7, 15:31 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4240943
Default Alt Text
ApiServersLogTest.php (525 B)
Attached To
Mode
rTESTSPRODENV Test suite for operations: prod-environment-behaves-correctly
Attached
Detach File
Event Timeline
Log In to Comment