]> granicus.if.org Git - php/commitdiff
README.TESTING examples
authorMarcus Boerger <helly@php.net>
Fri, 25 Oct 2002 10:46:19 +0000 (10:46 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 25 Oct 2002 10:46:19 +0000 (10:46 +0000)
ext/standard/tests/strings/str_shuffle.phpt [moved from ext/standard/tests/strings/003.phpt with 62% similarity]
ext/standard/tests/strings/strtr.phpt

similarity index 62%
rename from ext/standard/tests/strings/003.phpt
rename to ext/standard/tests/strings/str_shuffle.phpt
index cfe8f555057b7b464c0719ee6013888fe8fbdc25..cf6a07304bc9ca0d3f9ca8201d56e073d69bf48e 100644 (file)
@@ -2,6 +2,7 @@
 Testing str_shuffle.
 --FILE--
 <?php
+/* Do not change this test it is a REATME.TESTING example. */
 $s = '123';
 var_dump(str_shuffle($s));
 var_dump($s);
index 685f0ec678e4fdc89167caa73b5422b98265c1f1..7d9bd31d14e16246dc2482f45e25f503863aa557 100644 (file)
@@ -2,8 +2,9 @@
 strtr() function
 --FILE--
 <?php
-$trans = array("hello" => "hi", "hi" => "hello","a" => "A","world" => "planet");
-echo strtr("# hi all, I said hello world! #", $trans) . "\n";
+/* Do not change this test it is a REATME.TESTING example. */
+$trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet");
+var_dump(strtr("# hi all, I said hello world! #", $trans));
 ?>
 --EXPECT--
-# hello All, I sAid hi planet! #
+string(32) "# hello All, I sAid hi planet! #"
\ No newline at end of file