Skip to content

Commit

Permalink
Merge pull request #223 from phil-davis/fix-222
Browse files Browse the repository at this point in the history
[tests-only] [5.1] skip testParseMimeTypeOnInvalidMimeType
  • Loading branch information
phil-davis authored Aug 17, 2023
2 parents f67757f + 350c392 commit 3c5e4ac
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 in 5.x');
}
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Not a valid mime-type: invalid_mime_type');

Expand Down

0 comments on commit 3c5e4ac

Please sign in to comment.