1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 12:18:14 +01:00

10 Commits

Author SHA1 Message Date
Oliver Vogel
8cf0405a9a
Pass mime type manually to avoid finfo dependency 2024-10-06 16:37:26 +02:00
Oliver Vogel
e77a33394c
Switch EncodedImage::class to temporary stream resource 2024-10-06 11:36:17 +02:00
Oliver Vogel
63990a8fb3
Add tests for PNG indexed options 2024-08-03 11:15:29 +02:00
Oliver Vogel
fa2bf7d793
Implement config options 2024-05-09 10:38:33 +02:00
Oliver Vogel
41f2c96dc8
Refactor & fix bug in BaseTestCase::assertColor() 2024-05-05 11:48:13 +02:00
Oliver Vogel
ab403d98c6
Fix ignored opacity in Imagick's PlaceModifer for certain files. (#1346)
* Add tests to reproduce bug in PlaceModifier
* Fix bug in PlaceModifier
* Add tolerance parameter to BaseTestCase::assertColor()
2024-05-05 11:28:01 +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
03281ba995
Rename test functions 2024-03-10 10:13:45 +01: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