1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-22 05:22:50 +02:00

8 Commits

Author SHA1 Message Date
Oliver Vogel
5f3cc8a7a4 Add type hints in tests 2025-06-01 07:57:46 +02:00
Oliver Vogel
0cd29e6a78 Fix bug when trying to create FileExtension
Creation was only possible from lowercase extensions. This patch makes
it possible to create from lowercase or uppercase.
2025-01-17 15:14:06 +01:00
Oliver Vogel
b9a16d4df6 Optimize tests 2024-12-07 11:38:33 +01:00
Oliver Vogel
a5b1645002 Switch test data providers to generators 2024-11-12 16:15:46 +01:00
Oliver Vogel
33cbb217a0 Filter out parameter that do not match target encoder (#1333)
Filter out parameters/options that are passed to a format-unspecific encoder like AutoEncoder::class or MediaTypeEncoder::class but are not available in the format specific target encoder.
2024-04-23 16:17:12 +02:00
Oliver Vogel
8f6aabe8b9 Supported format detection (#1330)
* Implement data struture for format, media types & file extensions
* Refactor encoder resolving
* Extend type options in encoder methods
* Add DriverInterface::supports()
2024-04-13 18:42:48 +02:00
Oliver Vogel
7f4ff15d51 Improve Driver Specializing Process (#1315)
Streamline driver specializing process of analyzers, modifers, encoders and decoders.
2024-03-23 08:08:41 +01:00
Oliver Vogel
dcc95b8299 PHPUnit 10 Migration (#1302)
* Bump PHPUnit dependencies

* Set return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Ignore PHPUnit cache folder

* Adopt PHP attributes in test classes

* Declare data providers as `static`

* Add return types to test methods

* Define test classes as `final`

* Migrate phpunit.xml to phpunit 10

* Correct phpunit attribute class name

* Rename base test class

* Restructure test folders

* Fix test image paths

* Only set rules for php files in .editorconfig

* Remove php unit flag in local test env

---------

Co-authored-by: Shift <shift@laravelshift.com>
2024-02-28 16:16:23 +01:00