1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 20:28:21 +01:00

Remove test

This test only fails with no longer supported GD lib version 2.1.
The docker container of the test environment comes unfortunately with
with version and I have not yet managed to install a more recent version.

Unfortunately, adding the PHPUnit attribute #RequiresPhpExtension
with version number does not work either.
This commit is contained in:
Oliver Vogel 2024-05-07 14:43:26 +02:00
parent 93afecd394
commit 9a013b90fa
No known key found for this signature in database
GPG Key ID: 1B19D214C02D69BB

View File

@ -25,14 +25,4 @@ final class DrawLineModifierTest extends GdTestCase
$image->modify(new DrawLineModifier($line));
$this->assertEquals('b53517', $image->pickColor(0, 0)->toHex());
}
public function testApplyTransparent(): void
{
$image = $this->createTestImage(10, 10)->fill('ff5500');
$this->assertColor(255, 85, 0, 255, $image->pickColor(5, 5));
$line = new Line(new Point(0, 5), new Point(10, 5), 4);
$line->setBackgroundColor('fff4');
$image->modify(new DrawLineModifier($line));
$this->assertColor(255, 129, 66, 255, $image->pickColor(5, 5));
}
}