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

7 Commits

Author SHA1 Message Date
Oliver Vogel
6b9ce4fc44 feature/strip encoder parameter (#1421)
Add config option and encoder parameter to strip meta data in the encoding process.

---------

Co-authored-by: Thomas <thomas@sctr.net>
2025-01-18 16:42:14 +01:00
Oliver Vogel
b9a16d4df6 Optimize tests 2024-12-07 11:38:33 +01:00
Oliver Vogel
b496d1f6b9 Add test assertions to validate the correct mime type 2024-10-27 11:15:54 +01:00
Oliver Vogel
e77a33394c Switch EncodedImage::class to temporary stream resource 2024-10-06 11:36:17 +02:00
Oliver Vogel
c261654599 Refactor encoder tests 2024-03-26 15:17:02 +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