From c1b70791c2cb3d638c0ceccbce65fa5a67cdc97c Mon Sep 17 00:00:00 2001 From: Daniel Bettles Date: Wed, 28 Sep 2022 09:44:17 +0100 Subject: [PATCH] Removed exception that's no longer needed. --- .../FileTypeNotSupportedException.php | 34 ------------------- .../FileTypeNotSupportedExceptionTest.php | 33 ------------------ 2 files changed, 67 deletions(-) delete mode 100644 src/Exception/FileTypeNotSupportedException.php delete mode 100755 tests/src/Exception/FileTypeNotSupportedExceptionTest.php diff --git a/src/Exception/FileTypeNotSupportedException.php b/src/Exception/FileTypeNotSupportedException.php deleted file mode 100644 index 6582724..0000000 --- a/src/Exception/FileTypeNotSupportedException.php +++ /dev/null @@ -1,34 +0,0 @@ -assertTrue($this->getTestedClass()->isSubclassOf(RuntimeException::class)); - } - - public function testCanBeThrownWithOnlyTheNameOfTheInvalidFileType(): void - { - $this->expectException(FileTypeNotSupportedException::class); - $this->expectExceptionMessage('The file-type `foo` is not supported.'); - - throw new FileTypeNotSupportedException('foo'); - } - - public function testCanBeThrownWithAListOfSupportedTypes(): void - { - $this->expectException(FileTypeNotSupportedException::class); - $this->expectExceptionMessage('The file-type `foo` is not supported. Supported types: bar; baz'); - - throw new FileTypeNotSupportedException('foo', ['bar', 'baz']); - } -}