Skip to content

Commit

Permalink
skip testParseMimeTypeOnInvalidMimeType
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Aug 17, 2023
1 parent f67757f commit 5ad789f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/HTTP/FunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ public function testToHTTPDate()

public function testParseMimeTypeOnInvalidMimeType()
{
if (false === \getenv('EXECUTE_INVALID_MIME_TYPE_TEST')) {
$this->markTestSkipped('Test skipped because parseMimeType with an invalid mime type will exit');
}
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Not a valid mime-type: invalid_mime_type');

Expand Down

0 comments on commit 5ad789f

Please sign in to comment.