1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-24 06:22:57 +02:00

Refactor & fix bug in BaseTestCase::assertColor()

This commit is contained in:
Oliver Vogel
2024-05-05 11:48:13 +02:00
parent ab403d98c6
commit 41f2c96dc8
3 changed files with 32 additions and 23 deletions

View File

@@ -35,6 +35,6 @@ final class PlaceModifierTest extends GdTestCase
$image = $this->createTestImage(16, 16)->fill('0000ff');
$this->assertEquals('0000ff', $image->pickColor(10, 10)->toHex());
$image->modify(new PlaceModifier($this->getTestResourcePath('exif.jpg'), opacity: 50));
$this->assertColor(127, 83, 127, 255, $image->pickColor(10, 10), tolerance: 1);
$this->assertColor(127, 83, 127, 255, $image->pickColor(10, 10), tolerance: 0);
}
}