From 0d2eb5858520ace6a7d1b42f4267a6488a63c0ed Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Fri, 21 Nov 2014 19:49:22 +0100 Subject: [PATCH] addition to previous commit --- tests/CircleShapeTest.php | 2 +- tests/GdSystemTest.php | 4 ++-- tests/tmp/crc.png | Bin 0 -> 170 bytes 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 tests/tmp/crc.png diff --git a/tests/CircleShapeTest.php b/tests/CircleShapeTest.php index 02c77694..71b40d23 100644 --- a/tests/CircleShapeTest.php +++ b/tests/CircleShapeTest.php @@ -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); } diff --git a/tests/GdSystemTest.php b/tests/GdSystemTest.php index a64bc40c..950aa3a9 100644 --- a/tests/GdSystemTest.php +++ b/tests/GdSystemTest.php @@ -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() diff --git a/tests/tmp/crc.png b/tests/tmp/crc.png new file mode 100644 index 0000000000000000000000000000000000000000..919886063c17607467695fc90c1fd3c3ea2a314a GIT binary patch literal 170 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`g`O^sAr`%BgQJBGIIv9idtd+b zi}&%xH_olw@7lCM!Sm*ZZ1z1a3|~H0v!>iHeBiR+4nVE``>D01~jhz zu~XM4%l-17=?~spX8!x>-1KGbksZnxwrL4{yr5-h