diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-06-02 22:22:43 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-06-02 22:22:43 +0000 |
| commit | eac15d9fd5a8c376bcc2cf5f865bd34106609349 (patch) | |
| tree | e51e99c87e8b3897e7d2345f1b6d5d60ff5b8518 /ext/exif | |
| parent | 0816690760bfc4bfaf30d127666ab4e40a1065e3 (diff) | |
| download | php-git-eac15d9fd5a8c376bcc2cf5f865bd34106609349.tar.gz | |
fix tests in unicode mode
Diffstat (limited to 'ext/exif')
| -rwxr-xr-x | ext/exif/tests/bug34704.phpt | 29 | ||||
| -rw-r--r-- | ext/exif/tests/exif001.phpt | 70 | ||||
| -rw-r--r-- | ext/exif/tests/exif005.phpt | 9 |
3 files changed, 106 insertions, 2 deletions
diff --git a/ext/exif/tests/bug34704.phpt b/ext/exif/tests/bug34704.phpt index 7688ce861a..41eb42400a 100755 --- a/ext/exif/tests/bug34704.phpt +++ b/ext/exif/tests/bug34704.phpt @@ -40,3 +40,32 @@ array(7) { } } ===DONE=== +--UEXPECTF-- +array(7) { + [u"FileName"]=> + string(12) "bug34704.jpg" + [u"FileDateTime"]=> + int(1128867104) + [u"FileSize"]=> + int(9976) + [u"FileType"]=> + int(2) + [u"MimeType"]=> + string(10) "image/jpeg" + [u"SectionsFound"]=> + string(4) "IFD0" + [u"COMPUTED"]=> + array(5) { + [u"html"]=> + string(24) "width="386" height="488"" + [u"Height"]=> + int(488) + [u"Width"]=> + int(386) + [u"IsColor"]=> + int(1) + [u"ByteOrderMotorola"]=> + int(0) + } +} +===DONE=== diff --git a/ext/exif/tests/exif001.phpt b/ext/exif/tests/exif001.phpt index 8fac4286ca..ad4719831c 100644 --- a/ext/exif/tests/exif001.phpt +++ b/ext/exif/tests/exif001.phpt @@ -81,4 +81,72 @@ array(5) { [2]=> string(13) "Comment #3end" } -}
\ No newline at end of file +} +--UEXPECT-- +array(5) { + [u"FILE"]=> + array(6) { + [u"FileName"]=> + string(9) "test2.jpg" + [u"FileDateTime"]=> + int(1115993416) + [u"FileSize"]=> + int(1240) + [u"FileType"]=> + int(2) + [u"MimeType"]=> + string(10) "image/jpeg" + [u"SectionsFound"]=> + string(33) "ANY_TAG, IFD0, THUMBNAIL, COMMENT" + } + [u"COMPUTED"]=> + array(12) { + [u"html"]=> + string(20) "width="1" height="1"" + [u"Height"]=> + int(1) + [u"Width"]=> + int(1) + [u"IsColor"]=> + int(1) + [u"ByteOrderMotorola"]=> + int(1) + [u"UserComment"]=> + string(16) "Exif test image." + [u"UserCommentEncoding"]=> + string(5) "ASCII" + [u"Copyright"]=> + string(41) "Photo (c) M.Boerger, Edited by M.Boerger." + [u"Copyright.Photographer"]=> + string(19) "Photo (c) M.Boerger" + [u"Copyright.Editor"]=> + string(20) "Edited by M.Boerger." + [u"Thumbnail.FileType"]=> + int(2) + [u"Thumbnail.MimeType"]=> + string(10) "image/jpeg" + } + [u"IFD0"]=> + array(2) { + [u"Copyright"]=> + string(19) "Photo (c) M.Boerger" + [u"UserComment"]=> + string(5) "ASCII" + } + [u"THUMBNAIL"]=> + array(2) { + [u"JPEGInterchangeFormat"]=> + int(134) + [u"JPEGInterchangeFormatLength"]=> + int(523) + } + [u"COMMENT"]=> + array(3) { + [0]=> + string(11) "Comment #1." + [1]=> + string(11) "Comment #2." + [2]=> + string(13) "Comment #3end" + } +} diff --git a/ext/exif/tests/exif005.phpt b/ext/exif/tests/exif005.phpt index e34e3a0421..9edba0a618 100644 --- a/ext/exif/tests/exif005.phpt +++ b/ext/exif/tests/exif005.phpt @@ -19,4 +19,11 @@ array(2) { string(11) "Ifd00000009" ["DateTime"]=> string(19) "2002:10:18 20:06:00" -}
\ No newline at end of file +} +--UEXPECTF-- +array(2) { + [u"ImageDescription"]=> + string(11) "Ifd00000009" + [u"DateTime"]=> + string(19) "2002:10:18 20:06:00" +} |
