Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3767439
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
705 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/ApiServersLogTest.php b/ApiServersLogTest.php
new file mode 100644
index 0000000..7a590b6
--- /dev/null
+++ b/ApiServersLogTest.php
@@ -0,0 +1,18 @@
+<?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-diff
Expires
Mon, Nov 25, 00:14 (14 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259252
Default Alt Text
(705 B)
Attached To
Mode
rTESTSPRODENV Test suite for operations: prod-environment-behaves-correctly
Attached
Detach File
Event Timeline
Log In to Comment