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

index 3f4b59503edb8db599a2307d20f28a06b70ece04..53f4b6f987de3bcc289fcd43d447e3a419a119eb 100644 (file)
@@ -1,5 +1,10 @@
 --TEST--
-Test arsort() function : usage variations - sort strings 
+Test arsort() 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 arsort ( array &$array [, int $asort_flags] )
@@ -76,8 +81,10 @@ array(12) {
   string(2) "\a"
   ["\e"]=>
   string(1) "\e"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\f"]=>
   string(1) "\f"
   ["\v"]=>
@@ -106,8 +113,10 @@ array(12) {
   string(2) "\a"
   ["\e"]=>
   string(1) "\e"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\f"]=>
   string(1) "\f"
   ["\v"]=>
@@ -136,8 +145,10 @@ array(12) {
   string(2) "\a"
   ["\e"]=>
   string(1) "\e"
-  ["\r"]=>
-  string(1) "\r"
+  ["
+"]=>
+  string(1) "
+"
   ["\f"]=>
   string(1) "\f"
   ["\v"]=>