Skip to content

Commit

Permalink
Remove test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
olivervogel committed May 7, 2024
1 parent 93afecd commit 9a013b9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/Unit/Drivers/Gd/Modifiers/DrawLineModifierTest.php
Expand Up @@ -25,14 +25,4 @@ public function testApply(): void
$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));
}
}

0 comments on commit 9a013b9

Please sign in to comment.