]> granicus.if.org Git - php/commitdiff
fix tests in unicode mode
authorAntony Dovgal <tony2001@php.net>
Fri, 2 Jun 2006 22:22:43 +0000 (22:22 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 2 Jun 2006 22:22:43 +0000 (22:22 +0000)
ext/date/tests/bug37616.phpt
ext/date/tests/date_constants.phpt
ext/exif/tests/bug34704.phpt
ext/exif/tests/exif001.phpt
ext/exif/tests/exif005.phpt
tests/classes/serialize_001.phpt

index 7652501765e2566d0f42d3daa913692b3867e5db..6572d42601fd4dc1299f10735f0ec09d34f1b031 100644 (file)
@@ -7,3 +7,5 @@ Bug #37616 (DATE_RFC822 does not product RFC 822 dates)
 ?>
 --EXPECT--
 string(29) "Sat, 01 Jul 06 14:27:30 +0200"
+--UEXPECT--
+unicode(29) "Sat, 01 Jul 06 14:27:30 +0200"
index bf11d0bb77463af71619b1e475d61ff0e8d8ec55..466bec10986c57da6fde03776870f96a0cc2f9a4 100644 (file)
@@ -42,3 +42,24 @@ string(31) "Sat, 01 Jul 2006 14:27:30 +0200"
 string(31) "Tue, 30 May 2006 14:32:13 +0200"
 string(25) "2006-07-01T14:27:30+02:00"
 string(25) "2006-05-30T14:32:13+02:00"
+--UEXPECT--
+unicode(25) "2006-07-01T14:27:30+02:00"
+unicode(25) "2006-05-30T14:32:13+02:00"
+unicode(33) "Saturday, 01-Jul-06 14:27:30 CEST"
+unicode(32) "Tuesday, 30-May-06 14:32:13 CEST"
+unicode(24) "2006-07-01T14:27:30+0200"
+unicode(24) "2006-05-30T14:32:13+0200"
+unicode(29) "Sat, 01 Jul 06 14:27:30 +0200"
+unicode(29) "Tue, 30 May 06 14:32:13 +0200"
+unicode(33) "Saturday, 01-Jul-06 14:27:30 CEST"
+unicode(32) "Tuesday, 30-May-06 14:32:13 CEST"
+unicode(29) "Sat, 01 Jul 06 14:27:30 +0200"
+unicode(29) "Tue, 30 May 06 14:32:13 +0200"
+unicode(31) "Sat, 01 Jul 2006 14:27:30 +0200"
+unicode(31) "Tue, 30 May 2006 14:32:13 +0200"
+unicode(31) "Sat, 01 Jul 2006 14:27:30 +0200"
+unicode(31) "Tue, 30 May 2006 14:32:13 +0200"
+unicode(31) "Sat, 01 Jul 2006 14:27:30 +0200"
+unicode(31) "Tue, 30 May 2006 14:32:13 +0200"
+unicode(25) "2006-07-01T14:27:30+02:00"
+unicode(25) "2006-05-30T14:32:13+02:00"
index 7688ce861af33611afb3b56a03ca7eb9b5ee4308..41eb42400a148bb75464f85ad686c69748a03527 100755 (executable)
@@ -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===
index 8fac4286ca686d00170c78b10cc4328e2455d037..ad4719831c04b50c53114eeaa4ed513800c99099 100644 (file)
@@ -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"
+  }
+}
index e34e3a04217465c929d46a0decc18dc8db010022..9edba0a618c8f133269e92ed3b63cc218e63df33 100644 (file)
@@ -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"
+}
index 44d7bafadb65ac216fc17fd83af3a4aaeba2591b..3b93973a5efab055ffcfe4568a09341057d0d763 100755 (executable)
@@ -107,3 +107,33 @@ Test::__construct()
 Test::serialize()
 Exception: Test::serialize() must return a string or NULL
 ===DONE===
+--UEXPECT--
+==========
+unicode(6) "String"
+Test::__construct(String)
+Test::serialize(String)
+Test::unserialize(String)
+object(Test)#1 (1) {
+  [u"data"]=>
+  string(6) "String"
+}
+object(Test)#1 (1) {
+  [u"data"]=>
+  string(6) "String"
+}
+==========
+NULL
+Test::__construct()
+Test::serialize()
+NULL
+==========
+int(42)
+Test::__construct(42)
+Test::serialize(42)
+Exception: Test::serialize() must return a string or NULL
+==========
+bool(false)
+Test::__construct()
+Test::serialize()
+Exception: Test::serialize() must return a string or NULL
+===DONE===