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

10 Commits

Author SHA1 Message Date
Oliver Vogel
eecd98e338 Clean up 2025-08-01 17:31:58 +02:00
Oliver Vogel
60209b8f8f Externalize data provider 2025-08-01 17:30:09 +02:00
Oliver Vogel
8c49eb21a6 Allow all driver namespaces 2025-07-30 15:13:19 +02:00
Oliver Vogel
5f3cc8a7a4 Add type hints in tests 2025-06-01 07:57:46 +02:00
Oliver Vogel
f6e00abf6b Implement Driver::version() (#1417) 2025-01-11 08:47:43 +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
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
03281ba995 Rename test functions 2024-03-10 10:13:45 +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