summaryrefslogtreecommitdiff
path: root/tests/Unit/Http/Exceptions/HttpTemporaryRedirectTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-11-21 12:17:28 +0100
committermsquare <msquare@notrademark.de>2019-06-12 10:21:20 +0200
commit2e51fbff9d8472a0e98af39aff52d30f0b67706b (patch)
treea41eaf8fa3296fb2892b97fde1074edc566be4c3 /tests/Unit/Http/Exceptions/HttpTemporaryRedirectTest.php
parente948091066e4893b1b823fc80db1c1ebba174b53 (diff)
Added / route with redirects
Diffstat (limited to 'tests/Unit/Http/Exceptions/HttpTemporaryRedirectTest.php')
-rw-r--r--tests/Unit/Http/Exceptions/HttpTemporaryRedirectTest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/Unit/Http/Exceptions/HttpTemporaryRedirectTest.php b/tests/Unit/Http/Exceptions/HttpTemporaryRedirectTest.php
new file mode 100644
index 00000000..6096830f
--- /dev/null
+++ b/tests/Unit/Http/Exceptions/HttpTemporaryRedirectTest.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace Engelsystem\Test\Unit\Http;
+
+use Engelsystem\Http\Exceptions\HttpRedirect;
+use Engelsystem\Http\Exceptions\HttpTemporaryRedirect;
+use PHPUnit\Framework\TestCase;
+
+class HttpTemporaryRedirectTest extends TestCase
+{
+ /**
+ * @covers \Engelsystem\Http\Exceptions\HttpTemporaryRedirect::__construct
+ */
+ public function testConstruct()
+ {
+ $exception = new HttpTemporaryRedirect('https://lorem.ipsum/foo/bar');
+ $this->assertInstanceOf(HttpRedirect::class, $exception);
+ $this->assertEquals(302, $exception->getStatusCode());
+ }
+}