| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216 |
- <?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());
- }
- }
|