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

index 6e5a5c0363d64720d9856f6baeb789f385f2561d..aa1211d2a4bb3bf14a86bbe2280f1edebd66738e 100644 (file)
@@ -1,5 +1,10 @@
 --TEST--
-Test krsort() function : usage variations - sort strings  
+Test krsort() 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 krsort ( array &$array [, int $sort_flags] )
@@ -76,8 +81,10 @@ array(11) {
   string(2) "\a"
   ["\e"]=>
   string(1) "\e"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\f"]=>
   string(1) "\f"
   ["\v"]=>
@@ -104,8 +111,10 @@ array(11) {
   string(2) "\a"
   ["\e"]=>
   string(1) "\e"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\f"]=>
   string(1) "\f"
   ["\v"]=>
@@ -132,8 +141,10 @@ array(11) {
   string(2) "\a"
   ["\e"]=>
   string(1) "\e"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\f"]=>
   string(1) "\f"
   ["\v"]=>