Jelajahi Sumber

debug authen

stanley-king 6 tahun lalu
induk
melakukan
1f0aa38238
2 mengubah file dengan 20 tambahan dan 0 penghapusan
  1. TEMPAT SAMPAH
      mac_webacc
  2. 20 0
      test/TestTalk.php

TEMPAT SAMPAH
mac_webacc


+ 20 - 0
test/TestTalk.php

@@ -88,6 +88,26 @@ class TestTalk extends PHPUnit_Framework_TestCase
         $data = 'https%253A%252F%252Fpassport.lrlz.com';
         $val1 = urldecode($data);
         $val = urldecode($val1);
+    }
+    public function testArraySorter()
+    {
+        $l[1] = 'a';
+        $l[2] = 'b';
+        $l[3] = 'c';
+        $l[4] = 'd';
+
+        $r[4] = 'd';
+        $r[3] = 'c';
+        $r[2] = 'b';
+        $r[1] = 'a';
+
+        $out = fopen('php://stdout','w');
+        foreach ($l as $key => $val) {
+            fprintf($out, "{$key} : {$val} ");
+        }
 
+        foreach ($r as $key => $val) {
+            fprintf($out, "{$key} : {$val} ");
+        }
     }
 }