| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217 |
- <?php
- use Mike42\GfxPhp\Image;
- use Mike42\GfxPhp\RgbRasterImage;
- use PHPUnit\Framework\TestCase;
- use Mike42\GfxPhp\BlackAndWhiteRasterImage;
- use Mike42\GfxPhp\GrayscaleRasterImage;
- use Mike42\GfxPhp\IndexedRasterImage;
-
- /**
- * Simple check that all files in pngsuite are correctly accepted or rejected, and contain
- * correct width.
- */
- class PngsuiteTest extends TestCase
- {
- function loadImage(string $filename) {
- return Image::fromFile(__DIR__ . "/../resources/pngsuite/$filename");
- }
-
- function test_basi0g01() {
- $img = $this -> loadImage("basi0g01.png");
- $this -> assertTrue($img instanceOf BlackAndWhiteRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi0g02() {
- $img = $this -> loadImage("basi0g02.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi0g04() {
- $img = $this -> loadImage("basi0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi0g08() {
- $img = $this -> loadImage("basi0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi0g16() {
- $img = $this -> loadImage("basi0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi2c08() {
- $img = $this -> loadImage("basi2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi2c16() {
- $img = $this -> loadImage("basi2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi3p01() {
- $img = $this -> loadImage("basi3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi3p02() {
- $img = $this -> loadImage("basi3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi3p04() {
- $img = $this -> loadImage("basi3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi3p08() {
- $img = $this -> loadImage("basi3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi4a08() {
- $img = $this -> loadImage("basi4a08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi4a16() {
- $img = $this -> loadImage("basi4a16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi6a08() {
- $img = $this -> loadImage("basi6a08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basi6a16() {
- $img = $this -> loadImage("basi6a16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn0g01() {
- $img = $this -> loadImage("basn0g01.png");
- $this -> assertTrue($img instanceOf BlackAndWhiteRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn0g02() {
- $img = $this -> loadImage("basn0g02.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn0g04() {
- $img = $this -> loadImage("basn0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn0g08() {
- $img = $this -> loadImage("basn0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn0g16() {
- $img = $this -> loadImage("basn0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn2c08() {
- $img = $this -> loadImage("basn2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn2c16() {
- $img = $this -> loadImage("basn2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn3p01() {
- $img = $this -> loadImage("basn3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn3p02() {
- $img = $this -> loadImage("basn3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn3p04() {
- $img = $this -> loadImage("basn3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn3p08() {
- $img = $this -> loadImage("basn3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn4a08() {
- $img = $this -> loadImage("basn4a08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn4a16() {
- $img = $this -> loadImage("basn4a16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn6a08() {
- $img = $this -> loadImage("basn6a08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_basn6a16() {
- $img = $this -> loadImage("basn6a16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_bgai4a08() {
- $img = $this -> loadImage("bgai4a08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_bgai4a16() {
- $img = $this -> loadImage("bgai4a16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_bgan6a08() {
- $img = $this -> loadImage("bgan6a08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_bgan6a16() {
- $img = $this -> loadImage("bgan6a16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_bgbn4a08() {
- $img = $this -> loadImage("bgbn4a08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_bggn4a16() {
- $img = $this -> loadImage("bggn4a16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_bgwn6a08() {
- $img = $this -> loadImage("bgwn6a08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_bgyn6a16() {
- $img = $this -> loadImage("bgyn6a16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ccwn2c08() {
- $img = $this -> loadImage("ccwn2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ccwn3p08() {
- $img = $this -> loadImage("ccwn3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cdfn2c08() {
- $img = $this -> loadImage("cdfn2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(8, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cdhn2c08() {
- $img = $this -> loadImage("cdhn2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(8, $img -> getHeight());
- }
-
- function test_cdsn2c08() {
- $img = $this -> loadImage("cdsn2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(8, $img -> getWidth());
- $this -> assertEquals(8, $img -> getHeight());
- }
-
- function test_cdun2c08() {
- $img = $this -> loadImage("cdun2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ch1n3p04() {
- $img = $this -> loadImage("ch1n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ch2n3p08() {
- $img = $this -> loadImage("ch2n3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cm0n0g04() {
- $img = $this -> loadImage("cm0n0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cm7n0g04() {
- $img = $this -> loadImage("cm7n0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cm9n0g04() {
- $img = $this -> loadImage("cm9n0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cs3n2c16() {
- $img = $this -> loadImage("cs3n2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cs3n3p08() {
- $img = $this -> loadImage("cs3n3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cs5n2c08() {
- $img = $this -> loadImage("cs5n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cs5n3p08() {
- $img = $this -> loadImage("cs5n3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cs8n2c08() {
- $img = $this -> loadImage("cs8n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cs8n3p08() {
- $img = $this -> loadImage("cs8n3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ct0n0g04() {
- $img = $this -> loadImage("ct0n0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ct1n0g04() {
- $img = $this -> loadImage("ct1n0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cten0g04() {
- $img = $this -> loadImage("cten0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ctfn0g04() {
- $img = $this -> loadImage("ctfn0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ctgn0g04() {
- $img = $this -> loadImage("ctgn0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_cthn0g04() {
- $img = $this -> loadImage("cthn0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ctjn0g04() {
- $img = $this -> loadImage("ctjn0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ctzn0g04() {
- $img = $this -> loadImage("ctzn0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_exif2c08() {
- $img = $this -> loadImage("exif2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f00n0g08() {
- $img = $this -> loadImage("f00n0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f00n2c08() {
- $img = $this -> loadImage("f00n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f01n0g08() {
- $img = $this -> loadImage("f01n0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f01n2c08() {
- $img = $this -> loadImage("f01n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f02n0g08() {
- $img = $this -> loadImage("f02n0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f02n2c08() {
- $img = $this -> loadImage("f02n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f03n0g08() {
- $img = $this -> loadImage("f03n0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f03n2c08() {
- $img = $this -> loadImage("f03n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f04n0g08() {
- $img = $this -> loadImage("f04n0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f04n2c08() {
- $img = $this -> loadImage("f04n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_f99n0g04() {
- $img = $this -> loadImage("f99n0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g03n0g16() {
- $img = $this -> loadImage("g03n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g03n2c08() {
- $img = $this -> loadImage("g03n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g03n3p04() {
- $img = $this -> loadImage("g03n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g04n0g16() {
- $img = $this -> loadImage("g04n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g04n2c08() {
- $img = $this -> loadImage("g04n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g04n3p04() {
- $img = $this -> loadImage("g04n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g05n0g16() {
- $img = $this -> loadImage("g05n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g05n2c08() {
- $img = $this -> loadImage("g05n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g05n3p04() {
- $img = $this -> loadImage("g05n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g07n0g16() {
- $img = $this -> loadImage("g07n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g07n2c08() {
- $img = $this -> loadImage("g07n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g07n3p04() {
- $img = $this -> loadImage("g07n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g10n0g16() {
- $img = $this -> loadImage("g10n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g10n2c08() {
- $img = $this -> loadImage("g10n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g10n3p04() {
- $img = $this -> loadImage("g10n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g25n0g16() {
- $img = $this -> loadImage("g25n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g25n2c08() {
- $img = $this -> loadImage("g25n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_g25n3p04() {
- $img = $this -> loadImage("g25n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_oi1n0g16() {
- $img = $this -> loadImage("oi1n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_oi1n2c16() {
- $img = $this -> loadImage("oi1n2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_oi2n0g16() {
- $img = $this -> loadImage("oi2n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_oi2n2c16() {
- $img = $this -> loadImage("oi2n2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_oi4n0g16() {
- $img = $this -> loadImage("oi4n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_oi4n2c16() {
- $img = $this -> loadImage("oi4n2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_oi9n0g16() {
- $img = $this -> loadImage("oi9n0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_oi9n2c16() {
- $img = $this -> loadImage("oi9n2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_pp0n2c16() {
- $img = $this -> loadImage("pp0n2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_pp0n6a08() {
- $img = $this -> loadImage("pp0n6a08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ps1n0g08() {
- $img = $this -> loadImage("ps1n0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ps1n2c16() {
- $img = $this -> loadImage("ps1n2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ps2n0g08() {
- $img = $this -> loadImage("ps2n0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_ps2n2c16() {
- $img = $this -> loadImage("ps2n2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_s01i3p01() {
- $img = $this -> loadImage("s01i3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(1, $img -> getWidth());
- $this -> assertEquals(1, $img -> getHeight());
- }
-
- function test_s01n3p01() {
- $img = $this -> loadImage("s01n3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(1, $img -> getWidth());
- $this -> assertEquals(1, $img -> getHeight());
- }
-
- function test_s02i3p01() {
- $img = $this -> loadImage("s02i3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(2, $img -> getWidth());
- $this -> assertEquals(2, $img -> getHeight());
- }
-
- function test_s02n3p01() {
- $img = $this -> loadImage("s02n3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(2, $img -> getWidth());
- $this -> assertEquals(2, $img -> getHeight());
- }
-
- function test_s03i3p01() {
- $img = $this -> loadImage("s03i3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(3, $img -> getWidth());
- $this -> assertEquals(3, $img -> getHeight());
- }
-
- function test_s03n3p01() {
- $img = $this -> loadImage("s03n3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(3, $img -> getWidth());
- $this -> assertEquals(3, $img -> getHeight());
- }
-
- function test_s04i3p01() {
- $img = $this -> loadImage("s04i3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(4, $img -> getWidth());
- $this -> assertEquals(4, $img -> getHeight());
- }
-
- function test_s04n3p01() {
- $img = $this -> loadImage("s04n3p01.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(4, $img -> getWidth());
- $this -> assertEquals(4, $img -> getHeight());
- }
-
- function test_s05i3p02() {
- $img = $this -> loadImage("s05i3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(5, $img -> getWidth());
- $this -> assertEquals(5, $img -> getHeight());
- }
-
- function test_s05n3p02() {
- $img = $this -> loadImage("s05n3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(5, $img -> getWidth());
- $this -> assertEquals(5, $img -> getHeight());
- }
-
- function test_s06i3p02() {
- $img = $this -> loadImage("s06i3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(6, $img -> getWidth());
- $this -> assertEquals(6, $img -> getHeight());
- }
-
- function test_s06n3p02() {
- $img = $this -> loadImage("s06n3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(6, $img -> getWidth());
- $this -> assertEquals(6, $img -> getHeight());
- }
-
- function test_s07i3p02() {
- $img = $this -> loadImage("s07i3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(7, $img -> getWidth());
- $this -> assertEquals(7, $img -> getHeight());
- }
-
- function test_s07n3p02() {
- $img = $this -> loadImage("s07n3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(7, $img -> getWidth());
- $this -> assertEquals(7, $img -> getHeight());
- }
-
- function test_s08i3p02() {
- $img = $this -> loadImage("s08i3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(8, $img -> getWidth());
- $this -> assertEquals(8, $img -> getHeight());
- }
-
- function test_s08n3p02() {
- $img = $this -> loadImage("s08n3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(8, $img -> getWidth());
- $this -> assertEquals(8, $img -> getHeight());
- }
-
- function test_s09i3p02() {
- $img = $this -> loadImage("s09i3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(9, $img -> getWidth());
- $this -> assertEquals(9, $img -> getHeight());
- }
-
- function test_s09n3p02() {
- $img = $this -> loadImage("s09n3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(9, $img -> getWidth());
- $this -> assertEquals(9, $img -> getHeight());
- }
-
- function test_s32i3p04() {
- $img = $this -> loadImage("s32i3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_s32n3p04() {
- $img = $this -> loadImage("s32n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_s33i3p04() {
- $img = $this -> loadImage("s33i3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(33, $img -> getWidth());
- $this -> assertEquals(33, $img -> getHeight());
- }
-
- function test_s33n3p04() {
- $img = $this -> loadImage("s33n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(33, $img -> getWidth());
- $this -> assertEquals(33, $img -> getHeight());
- }
-
- function test_s34i3p04() {
- $img = $this -> loadImage("s34i3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(34, $img -> getWidth());
- $this -> assertEquals(34, $img -> getHeight());
- }
-
- function test_s34n3p04() {
- $img = $this -> loadImage("s34n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(34, $img -> getWidth());
- $this -> assertEquals(34, $img -> getHeight());
- }
-
- function test_s35i3p04() {
- $img = $this -> loadImage("s35i3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(35, $img -> getWidth());
- $this -> assertEquals(35, $img -> getHeight());
- }
-
- function test_s35n3p04() {
- $img = $this -> loadImage("s35n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(35, $img -> getWidth());
- $this -> assertEquals(35, $img -> getHeight());
- }
-
- function test_s36i3p04() {
- $img = $this -> loadImage("s36i3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(36, $img -> getWidth());
- $this -> assertEquals(36, $img -> getHeight());
- }
-
- function test_s36n3p04() {
- $img = $this -> loadImage("s36n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(36, $img -> getWidth());
- $this -> assertEquals(36, $img -> getHeight());
- }
-
- function test_s37i3p04() {
- $img = $this -> loadImage("s37i3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(37, $img -> getWidth());
- $this -> assertEquals(37, $img -> getHeight());
- }
-
- function test_s37n3p04() {
- $img = $this -> loadImage("s37n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(37, $img -> getWidth());
- $this -> assertEquals(37, $img -> getHeight());
- }
-
- function test_s38i3p04() {
- $img = $this -> loadImage("s38i3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(38, $img -> getWidth());
- $this -> assertEquals(38, $img -> getHeight());
- }
-
- function test_s38n3p04() {
- $img = $this -> loadImage("s38n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(38, $img -> getWidth());
- $this -> assertEquals(38, $img -> getHeight());
- }
-
- function test_s39i3p04() {
- $img = $this -> loadImage("s39i3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(39, $img -> getWidth());
- $this -> assertEquals(39, $img -> getHeight());
- }
-
- function test_s39n3p04() {
- $img = $this -> loadImage("s39n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(39, $img -> getWidth());
- $this -> assertEquals(39, $img -> getHeight());
- }
-
- function test_s40i3p04() {
- $img = $this -> loadImage("s40i3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(40, $img -> getWidth());
- $this -> assertEquals(40, $img -> getHeight());
- }
-
- function test_s40n3p04() {
- $img = $this -> loadImage("s40n3p04.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(40, $img -> getWidth());
- $this -> assertEquals(40, $img -> getHeight());
- }
-
- function test_tbbn0g04() {
- $img = $this -> loadImage("tbbn0g04.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tbbn2c16() {
- $img = $this -> loadImage("tbbn2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tbbn3p08() {
- $img = $this -> loadImage("tbbn3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tbgn2c16() {
- $img = $this -> loadImage("tbgn2c16.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tbgn3p08() {
- $img = $this -> loadImage("tbgn3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tbrn2c08() {
- $img = $this -> loadImage("tbrn2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tbwn0g16() {
- $img = $this -> loadImage("tbwn0g16.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tbwn3p08() {
- $img = $this -> loadImage("tbwn3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tbyn3p08() {
- $img = $this -> loadImage("tbyn3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tm3n3p02() {
- $img = $this -> loadImage("tm3n3p02.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tp0n0g08() {
- $img = $this -> loadImage("tp0n0g08.png");
- $this -> assertTrue($img instanceOf GrayscaleRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tp0n2c08() {
- $img = $this -> loadImage("tp0n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tp0n3p08() {
- $img = $this -> loadImage("tp0n3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_tp1n3p08() {
- $img = $this -> loadImage("tp1n3p08.png");
- $this -> assertTrue($img instanceOf IndexedRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_xc1n0g08() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xc1n0g08.png");
- }
-
- function test_xc9n2c08() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xc9n2c08.png");
- }
-
- function test_xcrn0g04() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xcrn0g04.png");
- }
-
- function test_xcsn0g01() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xcsn0g01.png");
- }
-
- function test_xd0n2c08() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xd0n2c08.png");
- }
-
- function test_xd3n2c08() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xd3n2c08.png");
- }
-
- function test_xd9n2c08() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xd9n2c08.png");
- }
-
- function test_xdtn0g01() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xdtn0g01.png");
- }
-
- function test_xhdn0g08() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xhdn0g08.png");
- }
-
- function test_xlfn0g04() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xlfn0g04.png");
- }
-
- function test_xs1n0g01() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xs1n0g01.png");
- }
-
- function test_xs2n0g01() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xs2n0g01.png");
- }
-
- function test_xs4n0g01() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xs4n0g01.png");
- }
-
- function test_xs7n0g01() {
- $this -> expectException(Exception::class);
- $img = $this -> loadImage("xs7n0g01.png");
- }
-
- function test_z00n2c08() {
- $img = $this -> loadImage("z00n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_z03n2c08() {
- $img = $this -> loadImage("z03n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_z06n2c08() {
- $img = $this -> loadImage("z06n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
-
- function test_z09n2c08() {
- $img = $this -> loadImage("z09n2c08.png");
- $this -> assertTrue($img instanceOf RgbRasterImage);
- $this -> assertEquals(32, $img -> getWidth());
- $this -> assertEquals(32, $img -> getHeight());
- }
- }
-
|