]> granicus.if.org Git - php/commitdiff
- skip on win
authorPierre Joye <pajoye@php.net>
Mon, 12 Dec 2011 13:53:38 +0000 (13:53 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 12 Dec 2011 13:53:38 +0000 (13:53 +0000)
ext/standard/tests/array/ksort_variation5.phpt

index 58b3123a7f0fa829326dfbdc19226ab6c6fa7063..4866ca47869f79509593259565add82bfd569141 100644 (file)
@@ -1,5 +1,10 @@
 --TEST--
-Test ksort() function : usage variations - sort strings  
+Test ksort() function : usage variations - sort strings
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+  die("skip Output tested contains chars that are not shown the same on windows concole (ESC and co)");
+}
 --FILE--
 <?php
 /* Prototype  : bool ksort ( array &$array [, int $sort_flags] )
@@ -78,8 +83,10 @@ array(11) {
   string(1) "\v"
   ["\f"]=>
   string(1) "\f"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\e"]=>
   string(1) "\e"
   ["\a"]=>
@@ -106,8 +113,10 @@ array(11) {
   string(1) "\v"
   ["\f"]=>
   string(1) "\f"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\e"]=>
   string(1) "\e"
   ["\a"]=>
@@ -134,8 +143,10 @@ array(11) {
   string(1) "\v"
   ["\f"]=>
   string(1) "\f"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\e"]=>
   string(1) "\e"
   ["\a"]=>