Browse Source

remove test folder

superbee315 5 years ago
parent
commit
b7e93c6847
4 changed files with 2 additions and 38 deletions
  1. 1 0
      .gitignore
  2. 1 2
      application/index/controller/Index.php
  3. 0 20
      tests/ExampleTest.php
  4. 0 16
      tests/TestCase.php

+ 1 - 0
.gitignore

@@ -3,3 +3,4 @@
 /.settings
 /php_errors.log
 .idea
+/tests

+ 1 - 2
application/index/controller/Index.php

@@ -36,8 +36,7 @@ class Index extends Controller
     	$time = $this->request->post('time');
     	$short = $this->request->post('short');
     	
-    	$tmp = Des::decrypt($sign, $key = $short.$time);
-    	echo $key;
+    	$tmp = Des::decrypt($sign, $short.$time);
     	
     	return json(['sign'=>$tmp]);
     }

+ 0 - 20
tests/ExampleTest.php

@@ -1,20 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
-// +----------------------------------------------------------------------
-// | Author: yunwuxin <448901948@qq.com>
-// +----------------------------------------------------------------------
-namespace tests;
-
-class ExampleTest extends TestCase
-{
-
-    public function testBasicExample()
-    {
-        $this->visit('/')->see('ThinkPHP');
-    }
-}

+ 0 - 16
tests/TestCase.php

@@ -1,16 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
-// +----------------------------------------------------------------------
-// | Author: yunwuxin <448901948@qq.com>
-// +----------------------------------------------------------------------
-namespace tests;
-
-class TestCase extends \think\testing\TestCase
-{
-    protected $baseUrl = 'http://localhost';
-}