]> 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 958476c0153cb0627a075a3b11f40dc1db1f1d0a..d83591aaeb7e1534e547d52fe632cab7cf8f8da3 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) "
+"
   ["\a"]=>
   string(2) "\a"
   ["\cx"]=>
@@ -106,8 +113,10 @@ array(11) {
   string(1) "\v"
   ["\f"]=>
   string(1) "\f"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\a"]=>
   string(2) "\a"
   ["\cx"]=>
@@ -134,8 +143,10 @@ array(11) {
   string(1) "\v"
   ["\f"]=>
   string(1) "\f"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\a"]=>
   string(2) "\a"
   ["\cx"]=>