1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-23 14:02:47 +02:00

9 Commits

Author SHA1 Message Date
Oliver Vogel
a20c9833da Rename Image::blendTransparency() to Image::background() 2025-06-20 17:23:01 +02:00
Oliver Vogel
4c48f7a143 Replace (semi-)transparent alpha values in BlendTransparencyModifier::class 2025-01-04 10:08:09 +01:00
Oliver Vogel
92bae6e762 Implement __debugInfo() (#1406) 2024-12-14 08:27:56 +01:00
Oliver Vogel
b9a16d4df6 Optimize tests 2024-12-07 11:38:33 +01:00
Oliver Vogel
e77a33394c Switch EncodedImage::class to temporary stream resource 2024-10-06 11:36:17 +02:00
Oliver Vogel
64632cd2c3 Add tests, improve code 2024-05-10 16:47:17 +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
67fde5f87e Restructure test folders & refactor test traits 2024-03-10 10:00:06 +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