summaryrefslogtreecommitdiff
path: root/tests/Unit/Http
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Http')
-rw-r--r--tests/Unit/Http/Exceptions/HttpAuthExpiredTest.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/Unit/Http/Exceptions/HttpAuthExpiredTest.php b/tests/Unit/Http/Exceptions/HttpAuthExpiredTest.php
new file mode 100644
index 00000000..4eaee032
--- /dev/null
+++ b/tests/Unit/Http/Exceptions/HttpAuthExpiredTest.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Engelsystem\Test\Unit\Http\Exceptions;
+
+use Engelsystem\Http\Exceptions\HttpAuthExpired;
+use PHPUnit\Framework\TestCase;
+
+class HttpAuthExpiredTest extends TestCase
+{
+ /**
+ * @covers \Engelsystem\Http\Exceptions\HttpAuthExpired::__construct
+ */
+ public function testConstruct()
+ {
+ $exception = new HttpAuthExpired();
+ $this->assertEquals(419, $exception->getStatusCode());
+ $this->assertEquals('Authentication Expired', $exception->getMessage());
+
+ $exception = new HttpAuthExpired('Oops!');
+ $this->assertEquals('Oops!', $exception->getMessage());
+ }
+}