PngsuiteTest.php 45KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217
  1. <?php
  2. use Mike42\GfxPhp\Image;
  3. use Mike42\GfxPhp\RgbRasterImage;
  4. use PHPUnit\Framework\TestCase;
  5. use Mike42\GfxPhp\BlackAndWhiteRasterImage;
  6. use Mike42\GfxPhp\GrayscaleRasterImage;
  7. use Mike42\GfxPhp\IndexedRasterImage;
  8. /**
  9. * Simple check that all files in pngsuite are correctly accepted or rejected, and contain
  10. * correct width.
  11. */
  12. class PngsuiteTest extends TestCase
  13. {
  14. function loadImage(string $filename) {
  15. return Image::fromFile(__DIR__ . "/../resources/pngsuite/$filename");
  16. }
  17. function test_basi0g01() {
  18. $img = $this -> loadImage("basi0g01.png");
  19. $this -> assertTrue($img instanceOf BlackAndWhiteRasterImage);
  20. $this -> assertEquals(32, $img -> getWidth());
  21. $this -> assertEquals(32, $img -> getHeight());
  22. }
  23. function test_basi0g02() {
  24. $img = $this -> loadImage("basi0g02.png");
  25. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  26. $this -> assertEquals(32, $img -> getWidth());
  27. $this -> assertEquals(32, $img -> getHeight());
  28. }
  29. function test_basi0g04() {
  30. $img = $this -> loadImage("basi0g04.png");
  31. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  32. $this -> assertEquals(32, $img -> getWidth());
  33. $this -> assertEquals(32, $img -> getHeight());
  34. }
  35. function test_basi0g08() {
  36. $img = $this -> loadImage("basi0g08.png");
  37. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  38. $this -> assertEquals(32, $img -> getWidth());
  39. $this -> assertEquals(32, $img -> getHeight());
  40. }
  41. function test_basi0g16() {
  42. $img = $this -> loadImage("basi0g16.png");
  43. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  44. $this -> assertEquals(32, $img -> getWidth());
  45. $this -> assertEquals(32, $img -> getHeight());
  46. }
  47. function test_basi2c08() {
  48. $img = $this -> loadImage("basi2c08.png");
  49. $this -> assertTrue($img instanceOf RgbRasterImage);
  50. $this -> assertEquals(32, $img -> getWidth());
  51. $this -> assertEquals(32, $img -> getHeight());
  52. }
  53. function test_basi2c16() {
  54. $img = $this -> loadImage("basi2c16.png");
  55. $this -> assertTrue($img instanceOf RgbRasterImage);
  56. $this -> assertEquals(32, $img -> getWidth());
  57. $this -> assertEquals(32, $img -> getHeight());
  58. }
  59. function test_basi3p01() {
  60. $img = $this -> loadImage("basi3p01.png");
  61. $this -> assertTrue($img instanceOf IndexedRasterImage);
  62. $this -> assertEquals(32, $img -> getWidth());
  63. $this -> assertEquals(32, $img -> getHeight());
  64. }
  65. function test_basi3p02() {
  66. $img = $this -> loadImage("basi3p02.png");
  67. $this -> assertTrue($img instanceOf IndexedRasterImage);
  68. $this -> assertEquals(32, $img -> getWidth());
  69. $this -> assertEquals(32, $img -> getHeight());
  70. }
  71. function test_basi3p04() {
  72. $img = $this -> loadImage("basi3p04.png");
  73. $this -> assertTrue($img instanceOf IndexedRasterImage);
  74. $this -> assertEquals(32, $img -> getWidth());
  75. $this -> assertEquals(32, $img -> getHeight());
  76. }
  77. function test_basi3p08() {
  78. $img = $this -> loadImage("basi3p08.png");
  79. $this -> assertTrue($img instanceOf IndexedRasterImage);
  80. $this -> assertEquals(32, $img -> getWidth());
  81. $this -> assertEquals(32, $img -> getHeight());
  82. }
  83. function test_basi4a08() {
  84. $img = $this -> loadImage("basi4a08.png");
  85. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  86. $this -> assertEquals(32, $img -> getWidth());
  87. $this -> assertEquals(32, $img -> getHeight());
  88. }
  89. function test_basi4a16() {
  90. $img = $this -> loadImage("basi4a16.png");
  91. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  92. $this -> assertEquals(32, $img -> getWidth());
  93. $this -> assertEquals(32, $img -> getHeight());
  94. }
  95. function test_basi6a08() {
  96. $img = $this -> loadImage("basi6a08.png");
  97. $this -> assertTrue($img instanceOf RgbRasterImage);
  98. $this -> assertEquals(32, $img -> getWidth());
  99. $this -> assertEquals(32, $img -> getHeight());
  100. }
  101. function test_basi6a16() {
  102. $img = $this -> loadImage("basi6a16.png");
  103. $this -> assertTrue($img instanceOf RgbRasterImage);
  104. $this -> assertEquals(32, $img -> getWidth());
  105. $this -> assertEquals(32, $img -> getHeight());
  106. }
  107. function test_basn0g01() {
  108. $img = $this -> loadImage("basn0g01.png");
  109. $this -> assertTrue($img instanceOf BlackAndWhiteRasterImage);
  110. $this -> assertEquals(32, $img -> getWidth());
  111. $this -> assertEquals(32, $img -> getHeight());
  112. }
  113. function test_basn0g02() {
  114. $img = $this -> loadImage("basn0g02.png");
  115. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  116. $this -> assertEquals(32, $img -> getWidth());
  117. $this -> assertEquals(32, $img -> getHeight());
  118. }
  119. function test_basn0g04() {
  120. $img = $this -> loadImage("basn0g04.png");
  121. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  122. $this -> assertEquals(32, $img -> getWidth());
  123. $this -> assertEquals(32, $img -> getHeight());
  124. }
  125. function test_basn0g08() {
  126. $img = $this -> loadImage("basn0g08.png");
  127. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  128. $this -> assertEquals(32, $img -> getWidth());
  129. $this -> assertEquals(32, $img -> getHeight());
  130. }
  131. function test_basn0g16() {
  132. $img = $this -> loadImage("basn0g16.png");
  133. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  134. $this -> assertEquals(32, $img -> getWidth());
  135. $this -> assertEquals(32, $img -> getHeight());
  136. }
  137. function test_basn2c08() {
  138. $img = $this -> loadImage("basn2c08.png");
  139. $this -> assertTrue($img instanceOf RgbRasterImage);
  140. $this -> assertEquals(32, $img -> getWidth());
  141. $this -> assertEquals(32, $img -> getHeight());
  142. }
  143. function test_basn2c16() {
  144. $img = $this -> loadImage("basn2c16.png");
  145. $this -> assertTrue($img instanceOf RgbRasterImage);
  146. $this -> assertEquals(32, $img -> getWidth());
  147. $this -> assertEquals(32, $img -> getHeight());
  148. }
  149. function test_basn3p01() {
  150. $img = $this -> loadImage("basn3p01.png");
  151. $this -> assertTrue($img instanceOf IndexedRasterImage);
  152. $this -> assertEquals(32, $img -> getWidth());
  153. $this -> assertEquals(32, $img -> getHeight());
  154. }
  155. function test_basn3p02() {
  156. $img = $this -> loadImage("basn3p02.png");
  157. $this -> assertTrue($img instanceOf IndexedRasterImage);
  158. $this -> assertEquals(32, $img -> getWidth());
  159. $this -> assertEquals(32, $img -> getHeight());
  160. }
  161. function test_basn3p04() {
  162. $img = $this -> loadImage("basn3p04.png");
  163. $this -> assertTrue($img instanceOf IndexedRasterImage);
  164. $this -> assertEquals(32, $img -> getWidth());
  165. $this -> assertEquals(32, $img -> getHeight());
  166. }
  167. function test_basn3p08() {
  168. $img = $this -> loadImage("basn3p08.png");
  169. $this -> assertTrue($img instanceOf IndexedRasterImage);
  170. $this -> assertEquals(32, $img -> getWidth());
  171. $this -> assertEquals(32, $img -> getHeight());
  172. }
  173. function test_basn4a08() {
  174. $img = $this -> loadImage("basn4a08.png");
  175. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  176. $this -> assertEquals(32, $img -> getWidth());
  177. $this -> assertEquals(32, $img -> getHeight());
  178. }
  179. function test_basn4a16() {
  180. $img = $this -> loadImage("basn4a16.png");
  181. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  182. $this -> assertEquals(32, $img -> getWidth());
  183. $this -> assertEquals(32, $img -> getHeight());
  184. }
  185. function test_basn6a08() {
  186. $img = $this -> loadImage("basn6a08.png");
  187. $this -> assertTrue($img instanceOf RgbRasterImage);
  188. $this -> assertEquals(32, $img -> getWidth());
  189. $this -> assertEquals(32, $img -> getHeight());
  190. }
  191. function test_basn6a16() {
  192. $img = $this -> loadImage("basn6a16.png");
  193. $this -> assertTrue($img instanceOf RgbRasterImage);
  194. $this -> assertEquals(32, $img -> getWidth());
  195. $this -> assertEquals(32, $img -> getHeight());
  196. }
  197. function test_bgai4a08() {
  198. $img = $this -> loadImage("bgai4a08.png");
  199. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  200. $this -> assertEquals(32, $img -> getWidth());
  201. $this -> assertEquals(32, $img -> getHeight());
  202. }
  203. function test_bgai4a16() {
  204. $img = $this -> loadImage("bgai4a16.png");
  205. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  206. $this -> assertEquals(32, $img -> getWidth());
  207. $this -> assertEquals(32, $img -> getHeight());
  208. }
  209. function test_bgan6a08() {
  210. $img = $this -> loadImage("bgan6a08.png");
  211. $this -> assertTrue($img instanceOf RgbRasterImage);
  212. $this -> assertEquals(32, $img -> getWidth());
  213. $this -> assertEquals(32, $img -> getHeight());
  214. }
  215. function test_bgan6a16() {
  216. $img = $this -> loadImage("bgan6a16.png");
  217. $this -> assertTrue($img instanceOf RgbRasterImage);
  218. $this -> assertEquals(32, $img -> getWidth());
  219. $this -> assertEquals(32, $img -> getHeight());
  220. }
  221. function test_bgbn4a08() {
  222. $img = $this -> loadImage("bgbn4a08.png");
  223. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  224. $this -> assertEquals(32, $img -> getWidth());
  225. $this -> assertEquals(32, $img -> getHeight());
  226. }
  227. function test_bggn4a16() {
  228. $img = $this -> loadImage("bggn4a16.png");
  229. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  230. $this -> assertEquals(32, $img -> getWidth());
  231. $this -> assertEquals(32, $img -> getHeight());
  232. }
  233. function test_bgwn6a08() {
  234. $img = $this -> loadImage("bgwn6a08.png");
  235. $this -> assertTrue($img instanceOf RgbRasterImage);
  236. $this -> assertEquals(32, $img -> getWidth());
  237. $this -> assertEquals(32, $img -> getHeight());
  238. }
  239. function test_bgyn6a16() {
  240. $img = $this -> loadImage("bgyn6a16.png");
  241. $this -> assertTrue($img instanceOf RgbRasterImage);
  242. $this -> assertEquals(32, $img -> getWidth());
  243. $this -> assertEquals(32, $img -> getHeight());
  244. }
  245. function test_ccwn2c08() {
  246. $img = $this -> loadImage("ccwn2c08.png");
  247. $this -> assertTrue($img instanceOf RgbRasterImage);
  248. $this -> assertEquals(32, $img -> getWidth());
  249. $this -> assertEquals(32, $img -> getHeight());
  250. }
  251. function test_ccwn3p08() {
  252. $img = $this -> loadImage("ccwn3p08.png");
  253. $this -> assertTrue($img instanceOf IndexedRasterImage);
  254. $this -> assertEquals(32, $img -> getWidth());
  255. $this -> assertEquals(32, $img -> getHeight());
  256. }
  257. function test_cdfn2c08() {
  258. $img = $this -> loadImage("cdfn2c08.png");
  259. $this -> assertTrue($img instanceOf RgbRasterImage);
  260. $this -> assertEquals(8, $img -> getWidth());
  261. $this -> assertEquals(32, $img -> getHeight());
  262. }
  263. function test_cdhn2c08() {
  264. $img = $this -> loadImage("cdhn2c08.png");
  265. $this -> assertTrue($img instanceOf RgbRasterImage);
  266. $this -> assertEquals(32, $img -> getWidth());
  267. $this -> assertEquals(8, $img -> getHeight());
  268. }
  269. function test_cdsn2c08() {
  270. $img = $this -> loadImage("cdsn2c08.png");
  271. $this -> assertTrue($img instanceOf RgbRasterImage);
  272. $this -> assertEquals(8, $img -> getWidth());
  273. $this -> assertEquals(8, $img -> getHeight());
  274. }
  275. function test_cdun2c08() {
  276. $img = $this -> loadImage("cdun2c08.png");
  277. $this -> assertTrue($img instanceOf RgbRasterImage);
  278. $this -> assertEquals(32, $img -> getWidth());
  279. $this -> assertEquals(32, $img -> getHeight());
  280. }
  281. function test_ch1n3p04() {
  282. $img = $this -> loadImage("ch1n3p04.png");
  283. $this -> assertTrue($img instanceOf IndexedRasterImage);
  284. $this -> assertEquals(32, $img -> getWidth());
  285. $this -> assertEquals(32, $img -> getHeight());
  286. }
  287. function test_ch2n3p08() {
  288. $img = $this -> loadImage("ch2n3p08.png");
  289. $this -> assertTrue($img instanceOf IndexedRasterImage);
  290. $this -> assertEquals(32, $img -> getWidth());
  291. $this -> assertEquals(32, $img -> getHeight());
  292. }
  293. function test_cm0n0g04() {
  294. $img = $this -> loadImage("cm0n0g04.png");
  295. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  296. $this -> assertEquals(32, $img -> getWidth());
  297. $this -> assertEquals(32, $img -> getHeight());
  298. }
  299. function test_cm7n0g04() {
  300. $img = $this -> loadImage("cm7n0g04.png");
  301. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  302. $this -> assertEquals(32, $img -> getWidth());
  303. $this -> assertEquals(32, $img -> getHeight());
  304. }
  305. function test_cm9n0g04() {
  306. $img = $this -> loadImage("cm9n0g04.png");
  307. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  308. $this -> assertEquals(32, $img -> getWidth());
  309. $this -> assertEquals(32, $img -> getHeight());
  310. }
  311. function test_cs3n2c16() {
  312. $img = $this -> loadImage("cs3n2c16.png");
  313. $this -> assertTrue($img instanceOf RgbRasterImage);
  314. $this -> assertEquals(32, $img -> getWidth());
  315. $this -> assertEquals(32, $img -> getHeight());
  316. }
  317. function test_cs3n3p08() {
  318. $img = $this -> loadImage("cs3n3p08.png");
  319. $this -> assertTrue($img instanceOf IndexedRasterImage);
  320. $this -> assertEquals(32, $img -> getWidth());
  321. $this -> assertEquals(32, $img -> getHeight());
  322. }
  323. function test_cs5n2c08() {
  324. $img = $this -> loadImage("cs5n2c08.png");
  325. $this -> assertTrue($img instanceOf RgbRasterImage);
  326. $this -> assertEquals(32, $img -> getWidth());
  327. $this -> assertEquals(32, $img -> getHeight());
  328. }
  329. function test_cs5n3p08() {
  330. $img = $this -> loadImage("cs5n3p08.png");
  331. $this -> assertTrue($img instanceOf IndexedRasterImage);
  332. $this -> assertEquals(32, $img -> getWidth());
  333. $this -> assertEquals(32, $img -> getHeight());
  334. }
  335. function test_cs8n2c08() {
  336. $img = $this -> loadImage("cs8n2c08.png");
  337. $this -> assertTrue($img instanceOf RgbRasterImage);
  338. $this -> assertEquals(32, $img -> getWidth());
  339. $this -> assertEquals(32, $img -> getHeight());
  340. }
  341. function test_cs8n3p08() {
  342. $img = $this -> loadImage("cs8n3p08.png");
  343. $this -> assertTrue($img instanceOf IndexedRasterImage);
  344. $this -> assertEquals(32, $img -> getWidth());
  345. $this -> assertEquals(32, $img -> getHeight());
  346. }
  347. function test_ct0n0g04() {
  348. $img = $this -> loadImage("ct0n0g04.png");
  349. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  350. $this -> assertEquals(32, $img -> getWidth());
  351. $this -> assertEquals(32, $img -> getHeight());
  352. }
  353. function test_ct1n0g04() {
  354. $img = $this -> loadImage("ct1n0g04.png");
  355. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  356. $this -> assertEquals(32, $img -> getWidth());
  357. $this -> assertEquals(32, $img -> getHeight());
  358. }
  359. function test_cten0g04() {
  360. $img = $this -> loadImage("cten0g04.png");
  361. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  362. $this -> assertEquals(32, $img -> getWidth());
  363. $this -> assertEquals(32, $img -> getHeight());
  364. }
  365. function test_ctfn0g04() {
  366. $img = $this -> loadImage("ctfn0g04.png");
  367. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  368. $this -> assertEquals(32, $img -> getWidth());
  369. $this -> assertEquals(32, $img -> getHeight());
  370. }
  371. function test_ctgn0g04() {
  372. $img = $this -> loadImage("ctgn0g04.png");
  373. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  374. $this -> assertEquals(32, $img -> getWidth());
  375. $this -> assertEquals(32, $img -> getHeight());
  376. }
  377. function test_cthn0g04() {
  378. $img = $this -> loadImage("cthn0g04.png");
  379. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  380. $this -> assertEquals(32, $img -> getWidth());
  381. $this -> assertEquals(32, $img -> getHeight());
  382. }
  383. function test_ctjn0g04() {
  384. $img = $this -> loadImage("ctjn0g04.png");
  385. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  386. $this -> assertEquals(32, $img -> getWidth());
  387. $this -> assertEquals(32, $img -> getHeight());
  388. }
  389. function test_ctzn0g04() {
  390. $img = $this -> loadImage("ctzn0g04.png");
  391. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  392. $this -> assertEquals(32, $img -> getWidth());
  393. $this -> assertEquals(32, $img -> getHeight());
  394. }
  395. function test_exif2c08() {
  396. $img = $this -> loadImage("exif2c08.png");
  397. $this -> assertTrue($img instanceOf RgbRasterImage);
  398. $this -> assertEquals(32, $img -> getWidth());
  399. $this -> assertEquals(32, $img -> getHeight());
  400. }
  401. function test_f00n0g08() {
  402. $img = $this -> loadImage("f00n0g08.png");
  403. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  404. $this -> assertEquals(32, $img -> getWidth());
  405. $this -> assertEquals(32, $img -> getHeight());
  406. }
  407. function test_f00n2c08() {
  408. $img = $this -> loadImage("f00n2c08.png");
  409. $this -> assertTrue($img instanceOf RgbRasterImage);
  410. $this -> assertEquals(32, $img -> getWidth());
  411. $this -> assertEquals(32, $img -> getHeight());
  412. }
  413. function test_f01n0g08() {
  414. $img = $this -> loadImage("f01n0g08.png");
  415. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  416. $this -> assertEquals(32, $img -> getWidth());
  417. $this -> assertEquals(32, $img -> getHeight());
  418. }
  419. function test_f01n2c08() {
  420. $img = $this -> loadImage("f01n2c08.png");
  421. $this -> assertTrue($img instanceOf RgbRasterImage);
  422. $this -> assertEquals(32, $img -> getWidth());
  423. $this -> assertEquals(32, $img -> getHeight());
  424. }
  425. function test_f02n0g08() {
  426. $img = $this -> loadImage("f02n0g08.png");
  427. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  428. $this -> assertEquals(32, $img -> getWidth());
  429. $this -> assertEquals(32, $img -> getHeight());
  430. }
  431. function test_f02n2c08() {
  432. $img = $this -> loadImage("f02n2c08.png");
  433. $this -> assertTrue($img instanceOf RgbRasterImage);
  434. $this -> assertEquals(32, $img -> getWidth());
  435. $this -> assertEquals(32, $img -> getHeight());
  436. }
  437. function test_f03n0g08() {
  438. $img = $this -> loadImage("f03n0g08.png");
  439. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  440. $this -> assertEquals(32, $img -> getWidth());
  441. $this -> assertEquals(32, $img -> getHeight());
  442. }
  443. function test_f03n2c08() {
  444. $img = $this -> loadImage("f03n2c08.png");
  445. $this -> assertTrue($img instanceOf RgbRasterImage);
  446. $this -> assertEquals(32, $img -> getWidth());
  447. $this -> assertEquals(32, $img -> getHeight());
  448. }
  449. function test_f04n0g08() {
  450. $img = $this -> loadImage("f04n0g08.png");
  451. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  452. $this -> assertEquals(32, $img -> getWidth());
  453. $this -> assertEquals(32, $img -> getHeight());
  454. }
  455. function test_f04n2c08() {
  456. $img = $this -> loadImage("f04n2c08.png");
  457. $this -> assertTrue($img instanceOf RgbRasterImage);
  458. $this -> assertEquals(32, $img -> getWidth());
  459. $this -> assertEquals(32, $img -> getHeight());
  460. }
  461. function test_f99n0g04() {
  462. $img = $this -> loadImage("f99n0g04.png");
  463. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  464. $this -> assertEquals(32, $img -> getWidth());
  465. $this -> assertEquals(32, $img -> getHeight());
  466. }
  467. function test_g03n0g16() {
  468. $img = $this -> loadImage("g03n0g16.png");
  469. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  470. $this -> assertEquals(32, $img -> getWidth());
  471. $this -> assertEquals(32, $img -> getHeight());
  472. }
  473. function test_g03n2c08() {
  474. $img = $this -> loadImage("g03n2c08.png");
  475. $this -> assertTrue($img instanceOf RgbRasterImage);
  476. $this -> assertEquals(32, $img -> getWidth());
  477. $this -> assertEquals(32, $img -> getHeight());
  478. }
  479. function test_g03n3p04() {
  480. $img = $this -> loadImage("g03n3p04.png");
  481. $this -> assertTrue($img instanceOf IndexedRasterImage);
  482. $this -> assertEquals(32, $img -> getWidth());
  483. $this -> assertEquals(32, $img -> getHeight());
  484. }
  485. function test_g04n0g16() {
  486. $img = $this -> loadImage("g04n0g16.png");
  487. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  488. $this -> assertEquals(32, $img -> getWidth());
  489. $this -> assertEquals(32, $img -> getHeight());
  490. }
  491. function test_g04n2c08() {
  492. $img = $this -> loadImage("g04n2c08.png");
  493. $this -> assertTrue($img instanceOf RgbRasterImage);
  494. $this -> assertEquals(32, $img -> getWidth());
  495. $this -> assertEquals(32, $img -> getHeight());
  496. }
  497. function test_g04n3p04() {
  498. $img = $this -> loadImage("g04n3p04.png");
  499. $this -> assertTrue($img instanceOf IndexedRasterImage);
  500. $this -> assertEquals(32, $img -> getWidth());
  501. $this -> assertEquals(32, $img -> getHeight());
  502. }
  503. function test_g05n0g16() {
  504. $img = $this -> loadImage("g05n0g16.png");
  505. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  506. $this -> assertEquals(32, $img -> getWidth());
  507. $this -> assertEquals(32, $img -> getHeight());
  508. }
  509. function test_g05n2c08() {
  510. $img = $this -> loadImage("g05n2c08.png");
  511. $this -> assertTrue($img instanceOf RgbRasterImage);
  512. $this -> assertEquals(32, $img -> getWidth());
  513. $this -> assertEquals(32, $img -> getHeight());
  514. }
  515. function test_g05n3p04() {
  516. $img = $this -> loadImage("g05n3p04.png");
  517. $this -> assertTrue($img instanceOf IndexedRasterImage);
  518. $this -> assertEquals(32, $img -> getWidth());
  519. $this -> assertEquals(32, $img -> getHeight());
  520. }
  521. function test_g07n0g16() {
  522. $img = $this -> loadImage("g07n0g16.png");
  523. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  524. $this -> assertEquals(32, $img -> getWidth());
  525. $this -> assertEquals(32, $img -> getHeight());
  526. }
  527. function test_g07n2c08() {
  528. $img = $this -> loadImage("g07n2c08.png");
  529. $this -> assertTrue($img instanceOf RgbRasterImage);
  530. $this -> assertEquals(32, $img -> getWidth());
  531. $this -> assertEquals(32, $img -> getHeight());
  532. }
  533. function test_g07n3p04() {
  534. $img = $this -> loadImage("g07n3p04.png");
  535. $this -> assertTrue($img instanceOf IndexedRasterImage);
  536. $this -> assertEquals(32, $img -> getWidth());
  537. $this -> assertEquals(32, $img -> getHeight());
  538. }
  539. function test_g10n0g16() {
  540. $img = $this -> loadImage("g10n0g16.png");
  541. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  542. $this -> assertEquals(32, $img -> getWidth());
  543. $this -> assertEquals(32, $img -> getHeight());
  544. }
  545. function test_g10n2c08() {
  546. $img = $this -> loadImage("g10n2c08.png");
  547. $this -> assertTrue($img instanceOf RgbRasterImage);
  548. $this -> assertEquals(32, $img -> getWidth());
  549. $this -> assertEquals(32, $img -> getHeight());
  550. }
  551. function test_g10n3p04() {
  552. $img = $this -> loadImage("g10n3p04.png");
  553. $this -> assertTrue($img instanceOf IndexedRasterImage);
  554. $this -> assertEquals(32, $img -> getWidth());
  555. $this -> assertEquals(32, $img -> getHeight());
  556. }
  557. function test_g25n0g16() {
  558. $img = $this -> loadImage("g25n0g16.png");
  559. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  560. $this -> assertEquals(32, $img -> getWidth());
  561. $this -> assertEquals(32, $img -> getHeight());
  562. }
  563. function test_g25n2c08() {
  564. $img = $this -> loadImage("g25n2c08.png");
  565. $this -> assertTrue($img instanceOf RgbRasterImage);
  566. $this -> assertEquals(32, $img -> getWidth());
  567. $this -> assertEquals(32, $img -> getHeight());
  568. }
  569. function test_g25n3p04() {
  570. $img = $this -> loadImage("g25n3p04.png");
  571. $this -> assertTrue($img instanceOf IndexedRasterImage);
  572. $this -> assertEquals(32, $img -> getWidth());
  573. $this -> assertEquals(32, $img -> getHeight());
  574. }
  575. function test_oi1n0g16() {
  576. $img = $this -> loadImage("oi1n0g16.png");
  577. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  578. $this -> assertEquals(32, $img -> getWidth());
  579. $this -> assertEquals(32, $img -> getHeight());
  580. }
  581. function test_oi1n2c16() {
  582. $img = $this -> loadImage("oi1n2c16.png");
  583. $this -> assertTrue($img instanceOf RgbRasterImage);
  584. $this -> assertEquals(32, $img -> getWidth());
  585. $this -> assertEquals(32, $img -> getHeight());
  586. }
  587. function test_oi2n0g16() {
  588. $img = $this -> loadImage("oi2n0g16.png");
  589. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  590. $this -> assertEquals(32, $img -> getWidth());
  591. $this -> assertEquals(32, $img -> getHeight());
  592. }
  593. function test_oi2n2c16() {
  594. $img = $this -> loadImage("oi2n2c16.png");
  595. $this -> assertTrue($img instanceOf RgbRasterImage);
  596. $this -> assertEquals(32, $img -> getWidth());
  597. $this -> assertEquals(32, $img -> getHeight());
  598. }
  599. function test_oi4n0g16() {
  600. $img = $this -> loadImage("oi4n0g16.png");
  601. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  602. $this -> assertEquals(32, $img -> getWidth());
  603. $this -> assertEquals(32, $img -> getHeight());
  604. }
  605. function test_oi4n2c16() {
  606. $img = $this -> loadImage("oi4n2c16.png");
  607. $this -> assertTrue($img instanceOf RgbRasterImage);
  608. $this -> assertEquals(32, $img -> getWidth());
  609. $this -> assertEquals(32, $img -> getHeight());
  610. }
  611. function test_oi9n0g16() {
  612. $img = $this -> loadImage("oi9n0g16.png");
  613. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  614. $this -> assertEquals(32, $img -> getWidth());
  615. $this -> assertEquals(32, $img -> getHeight());
  616. }
  617. function test_oi9n2c16() {
  618. $img = $this -> loadImage("oi9n2c16.png");
  619. $this -> assertTrue($img instanceOf RgbRasterImage);
  620. $this -> assertEquals(32, $img -> getWidth());
  621. $this -> assertEquals(32, $img -> getHeight());
  622. }
  623. function test_pp0n2c16() {
  624. $img = $this -> loadImage("pp0n2c16.png");
  625. $this -> assertTrue($img instanceOf RgbRasterImage);
  626. $this -> assertEquals(32, $img -> getWidth());
  627. $this -> assertEquals(32, $img -> getHeight());
  628. }
  629. function test_pp0n6a08() {
  630. $img = $this -> loadImage("pp0n6a08.png");
  631. $this -> assertTrue($img instanceOf RgbRasterImage);
  632. $this -> assertEquals(32, $img -> getWidth());
  633. $this -> assertEquals(32, $img -> getHeight());
  634. }
  635. function test_ps1n0g08() {
  636. $img = $this -> loadImage("ps1n0g08.png");
  637. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  638. $this -> assertEquals(32, $img -> getWidth());
  639. $this -> assertEquals(32, $img -> getHeight());
  640. }
  641. function test_ps1n2c16() {
  642. $img = $this -> loadImage("ps1n2c16.png");
  643. $this -> assertTrue($img instanceOf RgbRasterImage);
  644. $this -> assertEquals(32, $img -> getWidth());
  645. $this -> assertEquals(32, $img -> getHeight());
  646. }
  647. function test_ps2n0g08() {
  648. $img = $this -> loadImage("ps2n0g08.png");
  649. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  650. $this -> assertEquals(32, $img -> getWidth());
  651. $this -> assertEquals(32, $img -> getHeight());
  652. }
  653. function test_ps2n2c16() {
  654. $img = $this -> loadImage("ps2n2c16.png");
  655. $this -> assertTrue($img instanceOf RgbRasterImage);
  656. $this -> assertEquals(32, $img -> getWidth());
  657. $this -> assertEquals(32, $img -> getHeight());
  658. }
  659. function test_s01i3p01() {
  660. $img = $this -> loadImage("s01i3p01.png");
  661. $this -> assertTrue($img instanceOf IndexedRasterImage);
  662. $this -> assertEquals(1, $img -> getWidth());
  663. $this -> assertEquals(1, $img -> getHeight());
  664. }
  665. function test_s01n3p01() {
  666. $img = $this -> loadImage("s01n3p01.png");
  667. $this -> assertTrue($img instanceOf IndexedRasterImage);
  668. $this -> assertEquals(1, $img -> getWidth());
  669. $this -> assertEquals(1, $img -> getHeight());
  670. }
  671. function test_s02i3p01() {
  672. $img = $this -> loadImage("s02i3p01.png");
  673. $this -> assertTrue($img instanceOf IndexedRasterImage);
  674. $this -> assertEquals(2, $img -> getWidth());
  675. $this -> assertEquals(2, $img -> getHeight());
  676. }
  677. function test_s02n3p01() {
  678. $img = $this -> loadImage("s02n3p01.png");
  679. $this -> assertTrue($img instanceOf IndexedRasterImage);
  680. $this -> assertEquals(2, $img -> getWidth());
  681. $this -> assertEquals(2, $img -> getHeight());
  682. }
  683. function test_s03i3p01() {
  684. $img = $this -> loadImage("s03i3p01.png");
  685. $this -> assertTrue($img instanceOf IndexedRasterImage);
  686. $this -> assertEquals(3, $img -> getWidth());
  687. $this -> assertEquals(3, $img -> getHeight());
  688. }
  689. function test_s03n3p01() {
  690. $img = $this -> loadImage("s03n3p01.png");
  691. $this -> assertTrue($img instanceOf IndexedRasterImage);
  692. $this -> assertEquals(3, $img -> getWidth());
  693. $this -> assertEquals(3, $img -> getHeight());
  694. }
  695. function test_s04i3p01() {
  696. $img = $this -> loadImage("s04i3p01.png");
  697. $this -> assertTrue($img instanceOf IndexedRasterImage);
  698. $this -> assertEquals(4, $img -> getWidth());
  699. $this -> assertEquals(4, $img -> getHeight());
  700. }
  701. function test_s04n3p01() {
  702. $img = $this -> loadImage("s04n3p01.png");
  703. $this -> assertTrue($img instanceOf IndexedRasterImage);
  704. $this -> assertEquals(4, $img -> getWidth());
  705. $this -> assertEquals(4, $img -> getHeight());
  706. }
  707. function test_s05i3p02() {
  708. $img = $this -> loadImage("s05i3p02.png");
  709. $this -> assertTrue($img instanceOf IndexedRasterImage);
  710. $this -> assertEquals(5, $img -> getWidth());
  711. $this -> assertEquals(5, $img -> getHeight());
  712. }
  713. function test_s05n3p02() {
  714. $img = $this -> loadImage("s05n3p02.png");
  715. $this -> assertTrue($img instanceOf IndexedRasterImage);
  716. $this -> assertEquals(5, $img -> getWidth());
  717. $this -> assertEquals(5, $img -> getHeight());
  718. }
  719. function test_s06i3p02() {
  720. $img = $this -> loadImage("s06i3p02.png");
  721. $this -> assertTrue($img instanceOf IndexedRasterImage);
  722. $this -> assertEquals(6, $img -> getWidth());
  723. $this -> assertEquals(6, $img -> getHeight());
  724. }
  725. function test_s06n3p02() {
  726. $img = $this -> loadImage("s06n3p02.png");
  727. $this -> assertTrue($img instanceOf IndexedRasterImage);
  728. $this -> assertEquals(6, $img -> getWidth());
  729. $this -> assertEquals(6, $img -> getHeight());
  730. }
  731. function test_s07i3p02() {
  732. $img = $this -> loadImage("s07i3p02.png");
  733. $this -> assertTrue($img instanceOf IndexedRasterImage);
  734. $this -> assertEquals(7, $img -> getWidth());
  735. $this -> assertEquals(7, $img -> getHeight());
  736. }
  737. function test_s07n3p02() {
  738. $img = $this -> loadImage("s07n3p02.png");
  739. $this -> assertTrue($img instanceOf IndexedRasterImage);
  740. $this -> assertEquals(7, $img -> getWidth());
  741. $this -> assertEquals(7, $img -> getHeight());
  742. }
  743. function test_s08i3p02() {
  744. $img = $this -> loadImage("s08i3p02.png");
  745. $this -> assertTrue($img instanceOf IndexedRasterImage);
  746. $this -> assertEquals(8, $img -> getWidth());
  747. $this -> assertEquals(8, $img -> getHeight());
  748. }
  749. function test_s08n3p02() {
  750. $img = $this -> loadImage("s08n3p02.png");
  751. $this -> assertTrue($img instanceOf IndexedRasterImage);
  752. $this -> assertEquals(8, $img -> getWidth());
  753. $this -> assertEquals(8, $img -> getHeight());
  754. }
  755. function test_s09i3p02() {
  756. $img = $this -> loadImage("s09i3p02.png");
  757. $this -> assertTrue($img instanceOf IndexedRasterImage);
  758. $this -> assertEquals(9, $img -> getWidth());
  759. $this -> assertEquals(9, $img -> getHeight());
  760. }
  761. function test_s09n3p02() {
  762. $img = $this -> loadImage("s09n3p02.png");
  763. $this -> assertTrue($img instanceOf IndexedRasterImage);
  764. $this -> assertEquals(9, $img -> getWidth());
  765. $this -> assertEquals(9, $img -> getHeight());
  766. }
  767. function test_s32i3p04() {
  768. $img = $this -> loadImage("s32i3p04.png");
  769. $this -> assertTrue($img instanceOf IndexedRasterImage);
  770. $this -> assertEquals(32, $img -> getWidth());
  771. $this -> assertEquals(32, $img -> getHeight());
  772. }
  773. function test_s32n3p04() {
  774. $img = $this -> loadImage("s32n3p04.png");
  775. $this -> assertTrue($img instanceOf IndexedRasterImage);
  776. $this -> assertEquals(32, $img -> getWidth());
  777. $this -> assertEquals(32, $img -> getHeight());
  778. }
  779. function test_s33i3p04() {
  780. $img = $this -> loadImage("s33i3p04.png");
  781. $this -> assertTrue($img instanceOf IndexedRasterImage);
  782. $this -> assertEquals(33, $img -> getWidth());
  783. $this -> assertEquals(33, $img -> getHeight());
  784. }
  785. function test_s33n3p04() {
  786. $img = $this -> loadImage("s33n3p04.png");
  787. $this -> assertTrue($img instanceOf IndexedRasterImage);
  788. $this -> assertEquals(33, $img -> getWidth());
  789. $this -> assertEquals(33, $img -> getHeight());
  790. }
  791. function test_s34i3p04() {
  792. $img = $this -> loadImage("s34i3p04.png");
  793. $this -> assertTrue($img instanceOf IndexedRasterImage);
  794. $this -> assertEquals(34, $img -> getWidth());
  795. $this -> assertEquals(34, $img -> getHeight());
  796. }
  797. function test_s34n3p04() {
  798. $img = $this -> loadImage("s34n3p04.png");
  799. $this -> assertTrue($img instanceOf IndexedRasterImage);
  800. $this -> assertEquals(34, $img -> getWidth());
  801. $this -> assertEquals(34, $img -> getHeight());
  802. }
  803. function test_s35i3p04() {
  804. $img = $this -> loadImage("s35i3p04.png");
  805. $this -> assertTrue($img instanceOf IndexedRasterImage);
  806. $this -> assertEquals(35, $img -> getWidth());
  807. $this -> assertEquals(35, $img -> getHeight());
  808. }
  809. function test_s35n3p04() {
  810. $img = $this -> loadImage("s35n3p04.png");
  811. $this -> assertTrue($img instanceOf IndexedRasterImage);
  812. $this -> assertEquals(35, $img -> getWidth());
  813. $this -> assertEquals(35, $img -> getHeight());
  814. }
  815. function test_s36i3p04() {
  816. $img = $this -> loadImage("s36i3p04.png");
  817. $this -> assertTrue($img instanceOf IndexedRasterImage);
  818. $this -> assertEquals(36, $img -> getWidth());
  819. $this -> assertEquals(36, $img -> getHeight());
  820. }
  821. function test_s36n3p04() {
  822. $img = $this -> loadImage("s36n3p04.png");
  823. $this -> assertTrue($img instanceOf IndexedRasterImage);
  824. $this -> assertEquals(36, $img -> getWidth());
  825. $this -> assertEquals(36, $img -> getHeight());
  826. }
  827. function test_s37i3p04() {
  828. $img = $this -> loadImage("s37i3p04.png");
  829. $this -> assertTrue($img instanceOf IndexedRasterImage);
  830. $this -> assertEquals(37, $img -> getWidth());
  831. $this -> assertEquals(37, $img -> getHeight());
  832. }
  833. function test_s37n3p04() {
  834. $img = $this -> loadImage("s37n3p04.png");
  835. $this -> assertTrue($img instanceOf IndexedRasterImage);
  836. $this -> assertEquals(37, $img -> getWidth());
  837. $this -> assertEquals(37, $img -> getHeight());
  838. }
  839. function test_s38i3p04() {
  840. $img = $this -> loadImage("s38i3p04.png");
  841. $this -> assertTrue($img instanceOf IndexedRasterImage);
  842. $this -> assertEquals(38, $img -> getWidth());
  843. $this -> assertEquals(38, $img -> getHeight());
  844. }
  845. function test_s38n3p04() {
  846. $img = $this -> loadImage("s38n3p04.png");
  847. $this -> assertTrue($img instanceOf IndexedRasterImage);
  848. $this -> assertEquals(38, $img -> getWidth());
  849. $this -> assertEquals(38, $img -> getHeight());
  850. }
  851. function test_s39i3p04() {
  852. $img = $this -> loadImage("s39i3p04.png");
  853. $this -> assertTrue($img instanceOf IndexedRasterImage);
  854. $this -> assertEquals(39, $img -> getWidth());
  855. $this -> assertEquals(39, $img -> getHeight());
  856. }
  857. function test_s39n3p04() {
  858. $img = $this -> loadImage("s39n3p04.png");
  859. $this -> assertTrue($img instanceOf IndexedRasterImage);
  860. $this -> assertEquals(39, $img -> getWidth());
  861. $this -> assertEquals(39, $img -> getHeight());
  862. }
  863. function test_s40i3p04() {
  864. $img = $this -> loadImage("s40i3p04.png");
  865. $this -> assertTrue($img instanceOf IndexedRasterImage);
  866. $this -> assertEquals(40, $img -> getWidth());
  867. $this -> assertEquals(40, $img -> getHeight());
  868. }
  869. function test_s40n3p04() {
  870. $img = $this -> loadImage("s40n3p04.png");
  871. $this -> assertTrue($img instanceOf IndexedRasterImage);
  872. $this -> assertEquals(40, $img -> getWidth());
  873. $this -> assertEquals(40, $img -> getHeight());
  874. }
  875. function test_tbbn0g04() {
  876. $img = $this -> loadImage("tbbn0g04.png");
  877. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  878. $this -> assertEquals(32, $img -> getWidth());
  879. $this -> assertEquals(32, $img -> getHeight());
  880. }
  881. function test_tbbn2c16() {
  882. $img = $this -> loadImage("tbbn2c16.png");
  883. $this -> assertTrue($img instanceOf RgbRasterImage);
  884. $this -> assertEquals(32, $img -> getWidth());
  885. $this -> assertEquals(32, $img -> getHeight());
  886. }
  887. function test_tbbn3p08() {
  888. $img = $this -> loadImage("tbbn3p08.png");
  889. $this -> assertTrue($img instanceOf IndexedRasterImage);
  890. $this -> assertEquals(32, $img -> getWidth());
  891. $this -> assertEquals(32, $img -> getHeight());
  892. }
  893. function test_tbgn2c16() {
  894. $img = $this -> loadImage("tbgn2c16.png");
  895. $this -> assertTrue($img instanceOf RgbRasterImage);
  896. $this -> assertEquals(32, $img -> getWidth());
  897. $this -> assertEquals(32, $img -> getHeight());
  898. }
  899. function test_tbgn3p08() {
  900. $img = $this -> loadImage("tbgn3p08.png");
  901. $this -> assertTrue($img instanceOf IndexedRasterImage);
  902. $this -> assertEquals(32, $img -> getWidth());
  903. $this -> assertEquals(32, $img -> getHeight());
  904. }
  905. function test_tbrn2c08() {
  906. $img = $this -> loadImage("tbrn2c08.png");
  907. $this -> assertTrue($img instanceOf RgbRasterImage);
  908. $this -> assertEquals(32, $img -> getWidth());
  909. $this -> assertEquals(32, $img -> getHeight());
  910. }
  911. function test_tbwn0g16() {
  912. $img = $this -> loadImage("tbwn0g16.png");
  913. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  914. $this -> assertEquals(32, $img -> getWidth());
  915. $this -> assertEquals(32, $img -> getHeight());
  916. }
  917. function test_tbwn3p08() {
  918. $img = $this -> loadImage("tbwn3p08.png");
  919. $this -> assertTrue($img instanceOf IndexedRasterImage);
  920. $this -> assertEquals(32, $img -> getWidth());
  921. $this -> assertEquals(32, $img -> getHeight());
  922. }
  923. function test_tbyn3p08() {
  924. $img = $this -> loadImage("tbyn3p08.png");
  925. $this -> assertTrue($img instanceOf IndexedRasterImage);
  926. $this -> assertEquals(32, $img -> getWidth());
  927. $this -> assertEquals(32, $img -> getHeight());
  928. }
  929. function test_tm3n3p02() {
  930. $img = $this -> loadImage("tm3n3p02.png");
  931. $this -> assertTrue($img instanceOf IndexedRasterImage);
  932. $this -> assertEquals(32, $img -> getWidth());
  933. $this -> assertEquals(32, $img -> getHeight());
  934. }
  935. function test_tp0n0g08() {
  936. $img = $this -> loadImage("tp0n0g08.png");
  937. $this -> assertTrue($img instanceOf GrayscaleRasterImage);
  938. $this -> assertEquals(32, $img -> getWidth());
  939. $this -> assertEquals(32, $img -> getHeight());
  940. }
  941. function test_tp0n2c08() {
  942. $img = $this -> loadImage("tp0n2c08.png");
  943. $this -> assertTrue($img instanceOf RgbRasterImage);
  944. $this -> assertEquals(32, $img -> getWidth());
  945. $this -> assertEquals(32, $img -> getHeight());
  946. }
  947. function test_tp0n3p08() {
  948. $img = $this -> loadImage("tp0n3p08.png");
  949. $this -> assertTrue($img instanceOf IndexedRasterImage);
  950. $this -> assertEquals(32, $img -> getWidth());
  951. $this -> assertEquals(32, $img -> getHeight());
  952. }
  953. function test_tp1n3p08() {
  954. $img = $this -> loadImage("tp1n3p08.png");
  955. $this -> assertTrue($img instanceOf IndexedRasterImage);
  956. $this -> assertEquals(32, $img -> getWidth());
  957. $this -> assertEquals(32, $img -> getHeight());
  958. }
  959. function test_xc1n0g08() {
  960. $this -> expectException(Exception::class);
  961. $img = $this -> loadImage("xc1n0g08.png");
  962. }
  963. function test_xc9n2c08() {
  964. $this -> expectException(Exception::class);
  965. $img = $this -> loadImage("xc9n2c08.png");
  966. }
  967. function test_xcrn0g04() {
  968. $this -> expectException(Exception::class);
  969. $img = $this -> loadImage("xcrn0g04.png");
  970. }
  971. function test_xcsn0g01() {
  972. $this -> expectException(Exception::class);
  973. $img = $this -> loadImage("xcsn0g01.png");
  974. }
  975. function test_xd0n2c08() {
  976. $this -> expectException(Exception::class);
  977. $img = $this -> loadImage("xd0n2c08.png");
  978. }
  979. function test_xd3n2c08() {
  980. $this -> expectException(Exception::class);
  981. $img = $this -> loadImage("xd3n2c08.png");
  982. }
  983. function test_xd9n2c08() {
  984. $this -> expectException(Exception::class);
  985. $img = $this -> loadImage("xd9n2c08.png");
  986. }
  987. function test_xdtn0g01() {
  988. $this -> expectException(Exception::class);
  989. $img = $this -> loadImage("xdtn0g01.png");
  990. }
  991. function test_xhdn0g08() {
  992. $this -> expectException(Exception::class);
  993. $img = $this -> loadImage("xhdn0g08.png");
  994. }
  995. function test_xlfn0g04() {
  996. $this -> expectException(Exception::class);
  997. $img = $this -> loadImage("xlfn0g04.png");
  998. }
  999. function test_xs1n0g01() {
  1000. $this -> expectException(Exception::class);
  1001. $img = $this -> loadImage("xs1n0g01.png");
  1002. }
  1003. function test_xs2n0g01() {
  1004. $this -> expectException(Exception::class);
  1005. $img = $this -> loadImage("xs2n0g01.png");
  1006. }
  1007. function test_xs4n0g01() {
  1008. $this -> expectException(Exception::class);
  1009. $img = $this -> loadImage("xs4n0g01.png");
  1010. }
  1011. function test_xs7n0g01() {
  1012. $this -> expectException(Exception::class);
  1013. $img = $this -> loadImage("xs7n0g01.png");
  1014. }
  1015. function test_z00n2c08() {
  1016. $img = $this -> loadImage("z00n2c08.png");
  1017. $this -> assertTrue($img instanceOf RgbRasterImage);
  1018. $this -> assertEquals(32, $img -> getWidth());
  1019. $this -> assertEquals(32, $img -> getHeight());
  1020. }
  1021. function test_z03n2c08() {
  1022. $img = $this -> loadImage("z03n2c08.png");
  1023. $this -> assertTrue($img instanceOf RgbRasterImage);
  1024. $this -> assertEquals(32, $img -> getWidth());
  1025. $this -> assertEquals(32, $img -> getHeight());
  1026. }
  1027. function test_z06n2c08() {
  1028. $img = $this -> loadImage("z06n2c08.png");
  1029. $this -> assertTrue($img instanceOf RgbRasterImage);
  1030. $this -> assertEquals(32, $img -> getWidth());
  1031. $this -> assertEquals(32, $img -> getHeight());
  1032. }
  1033. function test_z09n2c08() {
  1034. $img = $this -> loadImage("z09n2c08.png");
  1035. $this -> assertTrue($img instanceOf RgbRasterImage);
  1036. $this -> assertEquals(32, $img -> getWidth());
  1037. $this -> assertEquals(32, $img -> getHeight());
  1038. }
  1039. }