瀏覽代碼

debug authen

stanley-king 6 年之前
父節點
當前提交
1f0aa38238
共有 2 個文件被更改,包括 20 次插入0 次删除
  1. 二進制
      mac_webacc
  2. 20 0
      test/TestTalk.php

二進制
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} ");
+        }
     }
 }