Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768009
D1318.id3385.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
683 B
Referenced Files
None
Subscribers
None
D1318.id3385.diff
View Options
diff --git a/ApiServersLogTest.php b/ApiServersLogTest.php
new file mode 100644
--- /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/plain
Expires
Sun, Nov 24, 05:05 (7 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259292
Default Alt Text
D1318.id3385.diff (683 B)
Attached To
Mode
D1318: Test API servers-log microservice
Attached
Detach File
Event Timeline
Log In to Comment