Page MenuHomeDevCentral

D1318.id3385.diff
No OneTemporary

D1318.id3385.diff

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

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)

Event Timeline