From ac80c9d00e5edabf4679d6e242cfdaf7fba9a841 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Wed, 6 Mar 2002 22:01:45 +0000 Subject: [PATCH] - standard test scripts for exif #hope all problems in exif are resolved now --- ext/exif/tests/001.phpt | 26 ++++++++++++++++++++++++++ ext/exif/tests/002.phpt | 26 ++++++++++++++++++++++++++ ext/exif/tests/test1.jpg | Bin 0 -> 523 bytes ext/exif/tests/test2.jpg | Bin 0 -> 1240 bytes 4 files changed, 52 insertions(+) create mode 100644 ext/exif/tests/001.phpt create mode 100644 ext/exif/tests/002.phpt create mode 100644 ext/exif/tests/test1.jpg create mode 100644 ext/exif/tests/test2.jpg diff --git a/ext/exif/tests/001.phpt b/ext/exif/tests/001.phpt new file mode 100644 index 0000000000..4fc885917b --- /dev/null +++ b/ext/exif/tests/001.phpt @@ -0,0 +1,26 @@ +--TEST-- +Check for exif_read_data +--SKIPIF-- + +--POST-- +--GET-- +--FILE-- +$section) { + $accept .= $section; + foreach($section as $name=>$value) { + $accept .= substr($name,0,2); + $accept .= $value; + } +} +echo $accept; +?> +--EXPECT-- +ArrayFitest2.jpgFi1015448798Fi1240SeCOMPUTED, ANY_TAG, IFD0, THUMBNAIL, COMMENT, EXIFArrayCoPhoto (c) M.BoergerCoEdited by M.Boerger.htwidth="1" height="1"He1Wi1Is1UsExif test image.UsASCIIArrayCoPhoto (c) M.BoergerUsASCIIArrayJP523Array0Comment #1.1Comment #2.2Comment #3end \ No newline at end of file diff --git a/ext/exif/tests/002.phpt b/ext/exif/tests/002.phpt new file mode 100644 index 0000000000..687090e74e --- /dev/null +++ b/ext/exif/tests/002.phpt @@ -0,0 +1,26 @@ +--TEST-- +Check for exif_thumbnail +--SKIPIF-- + +--POST-- +--GET-- +--FILE-- + +--EXPECT-- +7GWgw_523_identical_523_7GWgw \ No newline at end of file diff --git a/ext/exif/tests/test1.jpg b/ext/exif/tests/test1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..121decb65ad30078dc0a09bd23c62fb49d8a44ea GIT binary patch literal 523 zcmex=?U?LR#UJO6b*$~fG#Lh5@t1O zoG1cv!NH)5ABQ&u|Uz`(%4z|=H@feFY`1K~++V74TX?GMBm0U7xv`3f4znhL&pPWh=t z>8V8wt|^%%sVNFcl?X9C2FGA$Pfwr@kl_j?sl_DKK?PtW?-nLv;YKHA715xBNya8cO&6WnRVM|1c=$27*i>xMre-yl$ssAO zhZdKZiC+qRl=^9N%i+tVk3YMqPg&BsW$KYDPrfYOdi3hkuVHCrZPS)*J9h2aH*@#! z^z!!U%eNoD{`|WjC`y=ESio*#XJa)5J3-Mh?G$9NXZRX2 S{nSd8<^ON~AC2~r80`RuhC?d= literal 0 HcmV?d00001 -- 2.50.1