summaryrefslogtreecommitdiff
path: root/tests/app/Http/Exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Http/Exceptions')
-rw-r--r--tests/app/Http/Exceptions/HttpAccessDeniedExceptionTest.php35
-rw-r--r--tests/app/Http/Exceptions/HttpBadRequestExceptionTest.php35
-rw-r--r--tests/app/Http/Exceptions/HttpExceptionTest.php35
-rw-r--r--tests/app/Http/Exceptions/HttpNotFoundExceptionTest.php35
-rw-r--r--tests/app/Http/Exceptions/HttpServerErrorExceptionTest.php35
-rw-r--r--tests/app/Http/Exceptions/HttpServiceUnavailableExceptionTest.php35
-rw-r--r--tests/app/Http/Exceptions/HttpTooManyRequestsExceptionTest.php35
7 files changed, 245 insertions, 0 deletions
diff --git a/tests/app/Http/Exceptions/HttpAccessDeniedExceptionTest.php b/tests/app/Http/Exceptions/HttpAccessDeniedExceptionTest.php
new file mode 100644
index 0000000000..24a980523f
--- /dev/null
+++ b/tests/app/Http/Exceptions/HttpAccessDeniedExceptionTest.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2022 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+declare(strict_types=1);
+
+namespace Fisharebest\Webtrees\Http\Exceptions;
+
+use Fisharebest\Webtrees\TestCase;
+
+/**
+ * Test harness for the class HttpAccessDeniedException
+ *
+ * @covers Fisharebest\Webtrees\Http\Exceptions\HttpAccessDeniedException
+ */
+class HttpAccessDeniedExceptionTest extends TestCase
+{
+ public function testClass(): void
+ {
+ $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Exceptions\HttpAccessDeniedException::class));
+ }
+}
diff --git a/tests/app/Http/Exceptions/HttpBadRequestExceptionTest.php b/tests/app/Http/Exceptions/HttpBadRequestExceptionTest.php
new file mode 100644
index 0000000000..065fa57ad0
--- /dev/null
+++ b/tests/app/Http/Exceptions/HttpBadRequestExceptionTest.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2022 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+declare(strict_types=1);
+
+namespace Fisharebest\Webtrees\Http\Exceptions;
+
+use Fisharebest\Webtrees\TestCase;
+
+/**
+ * Test harness for the class HttpBadRequestException
+ *
+ * @covers Fisharebest\Webtrees\Http\Exceptions\HttpBadRequestException
+ */
+class HttpBadRequestExceptionTest extends TestCase
+{
+ public function testClass(): void
+ {
+ $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Exceptions\HttpBadRequestException::class));
+ }
+}
diff --git a/tests/app/Http/Exceptions/HttpExceptionTest.php b/tests/app/Http/Exceptions/HttpExceptionTest.php
new file mode 100644
index 0000000000..f168219a8f
--- /dev/null
+++ b/tests/app/Http/Exceptions/HttpExceptionTest.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2022 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+declare(strict_types=1);
+
+namespace Fisharebest\Webtrees\Http\Exceptions;
+
+use Fisharebest\Webtrees\TestCase;
+
+/**
+ * Test harness for the class HttpException
+ *
+ * @covers Fisharebest\Webtrees\Http\Exceptions\HttpException
+ */
+class HttpExceptionTest extends TestCase
+{
+ public function testClass(): void
+ {
+ $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Exceptions\HttpException::class));
+ }
+}
diff --git a/tests/app/Http/Exceptions/HttpNotFoundExceptionTest.php b/tests/app/Http/Exceptions/HttpNotFoundExceptionTest.php
new file mode 100644
index 0000000000..95d466c6f3
--- /dev/null
+++ b/tests/app/Http/Exceptions/HttpNotFoundExceptionTest.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2022 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+declare(strict_types=1);
+
+namespace Fisharebest\Webtrees\Http\Exceptions;
+
+use Fisharebest\Webtrees\TestCase;
+
+/**
+ * Test harness for the class HttpNotFoundException
+ *
+ * @covers Fisharebest\Webtrees\Http\Exceptions\HttpNotFoundException
+ */
+class HttpNotFoundExceptionTest extends TestCase
+{
+ public function testClass(): void
+ {
+ $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Exceptions\HttpNotFoundException::class));
+ }
+}
diff --git a/tests/app/Http/Exceptions/HttpServerErrorExceptionTest.php b/tests/app/Http/Exceptions/HttpServerErrorExceptionTest.php
new file mode 100644
index 0000000000..23fc77e36d
--- /dev/null
+++ b/tests/app/Http/Exceptions/HttpServerErrorExceptionTest.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2022 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+declare(strict_types=1);
+
+namespace Fisharebest\Webtrees\Http\Exceptions;
+
+use Fisharebest\Webtrees\TestCase;
+
+/**
+ * Test harness for the class HttpServerErrorException
+ *
+ * @covers Fisharebest\Webtrees\Http\Exceptions\HttpServerErrorException
+ */
+class HttpServerErrorExceptionTest extends TestCase
+{
+ public function testClass(): void
+ {
+ $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Exceptions\HttpServerErrorException::class));
+ }
+}
diff --git a/tests/app/Http/Exceptions/HttpServiceUnavailableExceptionTest.php b/tests/app/Http/Exceptions/HttpServiceUnavailableExceptionTest.php
new file mode 100644
index 0000000000..f3bf4981ab
--- /dev/null
+++ b/tests/app/Http/Exceptions/HttpServiceUnavailableExceptionTest.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2022 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+declare(strict_types=1);
+
+namespace Fisharebest\Webtrees\Http\Exceptions;
+
+use Fisharebest\Webtrees\TestCase;
+
+/**
+ * Test harness for the class HttpServiceUnavailableException
+ *
+ * @covers Fisharebest\Webtrees\Http\Exceptions\HttpServiceUnavailableException
+ */
+class HttpServiceUnavailableExceptionTest extends TestCase
+{
+ public function testClass(): void
+ {
+ $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Exceptions\HttpServiceUnavailableException::class));
+ }
+}
diff --git a/tests/app/Http/Exceptions/HttpTooManyRequestsExceptionTest.php b/tests/app/Http/Exceptions/HttpTooManyRequestsExceptionTest.php
new file mode 100644
index 0000000000..c6f5733247
--- /dev/null
+++ b/tests/app/Http/Exceptions/HttpTooManyRequestsExceptionTest.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2022 webtrees development team
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+declare(strict_types=1);
+
+namespace Fisharebest\Webtrees\Http\Exceptions;
+
+use Fisharebest\Webtrees\TestCase;
+
+/**
+ * Test harness for the class HttpTooManyRequestsException
+ *
+ * @covers Fisharebest\Webtrees\Http\Exceptions\HttpTooManyRequestsException
+ */
+class HttpTooManyRequestsExceptionTest extends TestCase
+{
+ public function testClass(): void
+ {
+ $this->assertTrue(class_exists(\Fisharebest\Webtrees\Http\Exceptions\HttpTooManyRequestsException::class));
+ }
+}