diff options
| author | SVN Migration <svn@php.net> | 2002-07-07 23:03:44 +0000 |
|---|---|---|
| committer | SVN Migration <svn@php.net> | 2002-07-07 23:03:44 +0000 |
| commit | 6befc001c9c6fdd85d1b3717201d2ba457ca33e0 (patch) | |
| tree | 31c32d6fb48a15932d3c279ae3c48c077c498764 /ext/exif/tests | |
| parent | f8875adaab9fe973ab798ead093e21972ed43a13 (diff) | |
| download | php-git-INITIAL_IMPORT_SOURCEFORGE.tar.gz | |
This commit was manufactured by cvs2svn to create tagINITIAL_IMPORT_SOURCEFORGE
'INITIAL_IMPORT_SOURCEFORGE'.
Diffstat (limited to 'ext/exif/tests')
| -rw-r--r-- | ext/exif/tests/001.phpt | 28 | ||||
| -rw-r--r-- | ext/exif/tests/002.phpt | 26 | ||||
| -rw-r--r-- | ext/exif/tests/003.phpt | 32 | ||||
| -rw-r--r-- | ext/exif/tests/004.phpt | 32 | ||||
| -rw-r--r-- | ext/exif/tests/test1.jpg | bin | 523 -> 0 bytes | |||
| -rw-r--r-- | ext/exif/tests/test2.jpg | bin | 1240 -> 0 bytes | |||
| -rw-r--r-- | ext/exif/tests/test3.jpg | bin | 1240 -> 0 bytes | |||
| -rw-r--r-- | ext/exif/tests/test4.jpg | bin | 713 -> 0 bytes |
8 files changed, 0 insertions, 118 deletions
diff --git a/ext/exif/tests/001.phpt b/ext/exif/tests/001.phpt deleted file mode 100644 index 69f0e2894f..0000000000 --- a/ext/exif/tests/001.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Check for exif_read_data ---SKIPIF-- -<?php if (!extension_loaded("exif")) print "skip";?> ---POST-- ---GET-- ---FILE-- -<?php -/* - test1.jpg is a 1*1 image that does not contain any Exif/Comment information - test2.jpg is the same image but contains Exif/Comment information and a - copy of test1.jpg as a thumbnail. -*/ -$image = exif_read_data('./ext/exif/tests/test2.jpg','',true,false); -$accept = ''; -foreach($image as $idx=>$section) { - $accept .= $section; - foreach($section as $name=>$value) { - if ( $idx!='FILE' || $name!='FileDateTime') { - $accept .= substr($name,0,2); - $accept .= $value; - } - } -} -echo $accept; -?> ---EXPECT-- -ArrayFitest2.jpgFi1240Fi2Miimage/jpegSeANY_TAG, IFD0, THUMBNAIL, COMMENTArrayhtwidth="1" height="1"He1Wi1Is1By1UsExif test image.UsASCIICoPhoto (c) M.Boerger, Edited by M.Boerger.CoPhoto (c) M.BoergerCoEdited by M.Boerger.Th2Thimage/jpegArrayCoPhoto (c) M.BoergerUsASCIIArrayJP134JP523Array0Comment #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 deleted file mode 100644 index d9e2298a5d..0000000000 --- a/ext/exif/tests/002.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -Check for exif_thumbnail ---SKIPIF-- -<?php if (!extension_loaded("exif")) print "skip";?> ---POST-- ---GET-- ---FILE-- -<?php -/* - test1.jpg is a 1*1 image that does not contain any Exif/Comment information - test2.jpg is the same image but contains Exif/Comment information and a - copy of test1.jpg as a thumbnail. -*/ -$istat= stat('./ext/exif/tests/test1.jpg'); -$fp = fopen('./ext/exif/tests/test1.jpg','r'); -$image = fread($fp,$istat[7]); -echo substr($image,490,5).'_'.$istat[7]; -fclose($fp); -$thumb = exif_thumbnail('./ext/exif/tests/test2.jpg'); -echo strcmp($image,$thumb) ? 'different' : '_identical_'; -echo strlen($thumb); -echo '_'.substr($thumb,490,5); -/* 7GWgw_523_identical_523_7GWgw */ -?> ---EXPECT-- -7GWgw_523_identical_523_7GWgw diff --git a/ext/exif/tests/003.phpt b/ext/exif/tests/003.phpt deleted file mode 100644 index ce2c7f840a..0000000000 --- a/ext/exif/tests/003.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -Check for exif_read_data, Unicode user comment ---SKIPIF-- -<?php if (!extension_loaded("exif")) print "skip";?> ---POST-- ---GET-- ---FILE-- -<?php -/* - test1.jpg is a 1*1 image that does not contain any Exif/Comment information - test2.jpg is the same image but contains Exif/Comment information and a - copy of test1.jpg as a thumbnail. - test3.jpg is the same as test2.jpg but with a UNICODE UserComment: ÄÖ&Üßäöü -*/ -chdir($_ENV['PHP_DIR']); -ini_alter('exif.decode_unicode_motorola', 'UCS-2BE'); -ini_alter('exif.encode_unicode', 'ISO-8859-15'); -$image = exif_read_data('./ext/exif/tests/test3.jpg','',true,false); -$accept = ''; -foreach($image as $idx=>$section) { - $accept .= $section; - foreach($section as $name=>$value) { - if ( $idx!='FILE' || $name!='FileDateTime') { - $accept .= substr($name,0,2); - $accept .= $value; - } - } -} -echo $accept; -?> ---EXPECT-- -ArrayFitest3.jpgFi1240Fi2Miimage/jpegSeANY_TAG, IFD0, THUMBNAIL, COMMENTArrayhtwidth="1" height="1"He1Wi1Is1By1UsÄÖÜßäöüUsUNICODECoPhoto (c) M.Boerger, Edited by M.Boerger.CoPhoto (c) M.BoergerCoEdited by M.Boerger.Th2Thimage/jpegArrayCoPhoto (c) M.BoergerUsUNICODEArrayJP134JP523Array0Comment #1.1Comment #2.2Comment #3end
\ No newline at end of file diff --git a/ext/exif/tests/004.phpt b/ext/exif/tests/004.phpt deleted file mode 100644 index 9dd5c90324..0000000000 --- a/ext/exif/tests/004.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -Check for exif_read_data, Unicode WinXP tags ---SKIPIF-- -<?php if (!extension_loaded("exif")) print "skip";?> ---POST-- ---GET-- ---FILE-- -<?php -/* - test4.jpg is a 1*1 image that contains Exif tags written by WindowsXP -*/ -chdir($_ENV['PHP_DIR']); -ini_alter('exif.decode_unicode_motorola', 'UCS-2BE'); -ini_alter('exif.encode_unicode', 'ISO-8859-15'); -$image = exif_read_data('./ext/exif/tests/test4.jpg','',true,false); -$accept = ''; -foreach($image as $idx=>$section) { - $accept .= $section; - foreach($section as $name=>$value) { - if ( $idx!='FILE' || $name!='FileDateTime') { - $accept .= substr($name,0,2); - $accept .= $value; - } - } -} -echo $accept; -?> ---EXPECT-- -ArrayFitest4.jpgFi713Fi2Miimage/jpegSeANY_TAG, IFD0, WINXPArrayhtwidth="1" height="1"He1Wi1Is1By0ArraySuArrayKeArrayAuArrayCoArrayTiArrayArraySuSubject...KeKeywords...AuRui CarmoCoComments -Line2 -Line3 -Line4TiTitle...
\ No newline at end of file diff --git a/ext/exif/tests/test1.jpg b/ext/exif/tests/test1.jpg Binary files differdeleted file mode 100644 index 121decb65a..0000000000 --- a/ext/exif/tests/test1.jpg +++ /dev/null diff --git a/ext/exif/tests/test2.jpg b/ext/exif/tests/test2.jpg Binary files differdeleted file mode 100644 index f60ecded6f..0000000000 --- a/ext/exif/tests/test2.jpg +++ /dev/null diff --git a/ext/exif/tests/test3.jpg b/ext/exif/tests/test3.jpg Binary files differdeleted file mode 100644 index 7547a16630..0000000000 --- a/ext/exif/tests/test3.jpg +++ /dev/null diff --git a/ext/exif/tests/test4.jpg b/ext/exif/tests/test4.jpg Binary files differdeleted file mode 100644 index 8a23a7b658..0000000000 --- a/ext/exif/tests/test4.jpg +++ /dev/null |
