mirror of
https://github.com/Intervention/image.git
synced 2025-08-20 04:31:24 +02:00
addition to previous commit
This commit is contained in:
@@ -14,7 +14,7 @@ class CircleShapeTest extends PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$circle = new CircleGd(250);
|
$circle = new CircleGd(250);
|
||||||
$this->assertInstanceOf('Intervention\Image\Gd\Shapes\CircleShape', $circle);
|
$this->assertInstanceOf('Intervention\Image\Gd\Shapes\CircleShape', $circle);
|
||||||
$this->assertEquals(250, $circle->radius);
|
$this->assertEquals(250, $circle->diameter);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1065,14 +1065,14 @@ class GdSystemTest extends PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$img = $this->manager()->canvas(16, 16, 'ffffff');
|
$img = $this->manager()->canvas(16, 16, 'ffffff');
|
||||||
$img->ellipse(12, 8, 8, 8, function ($draw) { $draw->background('#ff0000'); $draw->border(1, '#0000ff'); });
|
$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()
|
public function testCircleImage()
|
||||||
{
|
{
|
||||||
$img = $this->manager()->canvas(16, 16, 'ffffff');
|
$img = $this->manager()->canvas(16, 16, 'ffffff');
|
||||||
$img->circle(12, 8, 8, function ($draw) { $draw->background('#ff0000'); $draw->border(1, '#0000ff'); });
|
$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()
|
public function testPolygonImage()
|
||||||
|
BIN
tests/tmp/crc.png
Normal file
BIN
tests/tmp/crc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 170 B |
Reference in New Issue
Block a user