1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-01 11:30:16 +02:00

addition to previous commit

This commit is contained in:
Oliver Vogel
2014-11-21 19:49:22 +01:00
parent 39c260fb4a
commit 0d2eb58585
3 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ class CircleShapeTest extends PHPUnit_Framework_TestCase
{
$circle = new CircleGd(250);
$this->assertInstanceOf('Intervention\Image\Gd\Shapes\CircleShape', $circle);
$this->assertEquals(250, $circle->radius);
$this->assertEquals(250, $circle->diameter);
}

View File

@@ -1065,14 +1065,14 @@ class GdSystemTest extends PHPUnit_Framework_TestCase
{
$img = $this->manager()->canvas(16, 16, 'ffffff');
$img->ellipse(12, 8, 8, 8, function ($draw) { $draw->background('#ff0000'); $draw->border(1, '#0000ff'); });
$this->assertEquals('d56363fd454ad6e25a23c2a4a7c77998', $img->checksum());
$this->assertEquals('080d9dd92ebe22f976c3c703cba33510', $img->checksum());
}
public function testCircleImage()
{
$img = $this->manager()->canvas(16, 16, 'ffffff');
$img->circle(12, 8, 8, function ($draw) { $draw->background('#ff0000'); $draw->border(1, '#0000ff'); });
$this->assertEquals('c214f58de03d171f7f278a7b957bab50', $img->checksum());
$this->assertEquals('c3bff06c20244ba14e898e39ea0efd76', $img->checksum());
}
public function testPolygonImage()

BIN
tests/tmp/crc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B