Skip to content

Commit

Permalink
Add negative tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Apr 13, 2024
1 parent 9e44aa5 commit 4510a9e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Unit/Drivers/Gd/DriverTest.php
Expand Up @@ -196,6 +196,11 @@ public static function supportsDataProvider(): array
[false, 'image/heic'],
[false, 'image/heif'],

[false, 'tga'],
[false, 'image/tga'],
[false, 'image/x-targa'],
[false, 'foo'],
[false, ''],
];
}
}
6 changes: 6 additions & 0 deletions tests/Unit/Drivers/Imagick/DriverTest.php
Expand Up @@ -195,6 +195,12 @@ public static function supportsDataProvider(): array
[true, 'heif'],
[true, 'image/heic'],
[true, 'image/heif'],

[false, 'tga'],
[false, 'image/tga'],
[false, 'image/x-targa'],
[false, 'foo'],
[false, ''],
];
}
}

0 comments on commit 4510a9e

Please sign in to comment.