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

7 Commits

Author SHA1 Message Date
Oliver Vogel
ed6ddf4aa7 Fix discarded alpha channel of watermark in PlaceModifier (#1368) 2024-06-12 17:10:49 +02:00
Oliver Vogel
2e0cbf2408 Add tolerance to test 2024-05-05 11:49:04 +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
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