Page MenuHomeDevCentral

No OneTemporary

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

Mime Type
text/x-diff
Expires
Mon, Nov 25, 08:50 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259252
Default Alt Text
(705 B)

Event Timeline