mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
修正命名空间、版权注释
This commit is contained in:
@@ -6,14 +6,19 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: 大漠 <zhylninc@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
namespace think;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2016-01-15 at 07:00:38.
|
* Debug测试
|
||||||
|
* @author 大漠 <zhylninc@gmail.com>
|
||||||
*/
|
*/
|
||||||
class DebugTest extends \PHPUnit_Framework_TestCase
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
|
use think\Debug;
|
||||||
|
|
||||||
|
class debugTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,16 +2,23 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Copyright (c) 2006~2015 http://thinkphp.cn All rights reserved.
|
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: Haotong Lin <lofanmi@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Input测试
|
||||||
|
* @author Haotong Lin <lofanmi@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
use think\Input;
|
use think\Input;
|
||||||
|
|
||||||
class InputTest extends \PHPUnit_Framework_TestCase
|
class inputTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testEmptyStringName()
|
public function testEmptyStringName()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,14 +6,17 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: 大漠 <zhylninc@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
namespace think;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2016-01-14 at 21:32:07.
|
* Response测试
|
||||||
|
* @author 大漠 <zhylninc@gmail.com>
|
||||||
*/
|
*/
|
||||||
class ResponseTest extends \PHPUnit_Framework_TestCase
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
|
class responseTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -6,14 +6,17 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: 大漠 <zhylninc@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
namespace think;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2016-01-14 at 02:40:08.
|
* Session测试
|
||||||
|
* @author 大漠 <zhylninc@gmail.com>
|
||||||
*/
|
*/
|
||||||
class SessionTest extends \PHPUnit_Framework_TestCase
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
|
class sessionTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -85,7 +88,7 @@ class SessionTest extends \PHPUnit_Framework_TestCase
|
|||||||
'cache_expire' => '60',
|
'cache_expire' => '60',
|
||||||
'type' => '', // memcache
|
'type' => '', // memcache
|
||||||
'namespace' => '\\think\\session\\driver\\', // ?
|
'namespace' => '\\think\\session\\driver\\', // ?
|
||||||
'auto_start' => '1'
|
'auto_start' => '1',
|
||||||
];
|
];
|
||||||
|
|
||||||
$_REQUEST[$config['var_session_id']] = $config['id'];
|
$_REQUEST[$config['var_session_id']] = $config['id'];
|
||||||
@@ -149,7 +152,7 @@ class SessionTest extends \PHPUnit_Framework_TestCase
|
|||||||
'cache_expire' => '60',
|
'cache_expire' => '60',
|
||||||
'type' => 'memcache', //
|
'type' => 'memcache', //
|
||||||
'namespace' => '\\think\\session\\driver\\', // ?
|
'namespace' => '\\think\\session\\driver\\', // ?
|
||||||
'auto_start' => '1'
|
'auto_start' => '1',
|
||||||
];
|
];
|
||||||
|
|
||||||
// 测试session驱动是否存在
|
// 测试session驱动是否存在
|
||||||
|
|||||||
@@ -2,17 +2,19 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Copyright (c) 2006~2015 http://thinkphp.cn All rights reserved.
|
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: mahuan <mahuan@d1web.top>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* view测试
|
* view测试
|
||||||
* @author mahuan <mahuan@d1web.top>
|
* @author mahuan <mahuan@d1web.top>
|
||||||
*/
|
*/
|
||||||
namespace think;
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
class viewTest extends \PHPUnit_Framework_TestCase
|
class viewTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,10 +6,15 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: Haotong Lin <lofanmi@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace think;
|
/**
|
||||||
|
* app类测试
|
||||||
|
* @author Haotong Lin <lofanmi@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
class appTest extends \PHPUnit_Framework_TestCase
|
class appTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
namespace tests\thinkphp\library\think\cache\driver;
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
use think\cache;
|
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 缓存抽象类,提供一些测试
|
* 缓存抽象类,提供一些测试
|
||||||
* @author simon <mahuan@d1web.top>
|
* @author simon <mahuan@d1web.top>
|
||||||
*/
|
*/
|
||||||
abstract class CacheTestCase extends \PHPUnit_Framework_TestCase
|
|
||||||
|
namespace tests\thinkphp\library\think\cache\driver;
|
||||||
|
|
||||||
|
use think\cache;
|
||||||
|
|
||||||
|
abstract class cacheTestCase extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -8,13 +8,15 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apc缓存驱动测试
|
* Apc缓存驱动测试
|
||||||
* @author mahuan <mahuan@d1web.top>
|
* @author mahuan <mahuan@d1web.top>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace tests\thinkphp\library\think\cache\driver;
|
namespace tests\thinkphp\library\think\cache\driver;
|
||||||
|
|
||||||
class apcTest extends CacheTestCase
|
class apcTest extends cacheTestCase
|
||||||
{
|
{
|
||||||
private $_cacheInstance = null;
|
private $_cacheInstance = null;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,9 +13,10 @@
|
|||||||
* 数据库缓存驱动测试
|
* 数据库缓存驱动测试
|
||||||
* @author mahuan <mahuan@d1web.top>
|
* @author mahuan <mahuan@d1web.top>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace tests\thinkphp\library\think\cache\driver;
|
namespace tests\thinkphp\library\think\cache\driver;
|
||||||
|
|
||||||
class dbTest extends CacheTestCase
|
class dbTest extends cacheTestCase
|
||||||
{
|
{
|
||||||
private $_cacheInstance = null;
|
private $_cacheInstance = null;
|
||||||
|
|
||||||
|
|||||||
@@ -11,11 +11,10 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Ini配置测试
|
* Ini配置测试
|
||||||
*
|
|
||||||
* @author 7IN0SAN9 <me@7in0.me>
|
* @author 7IN0SAN9 <me@7in0.me>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace think\config\driver;
|
namespace tests\thinkphp\library\think\config\driver;
|
||||||
|
|
||||||
use think\config;
|
use think\config;
|
||||||
|
|
||||||
|
|||||||
@@ -11,11 +11,10 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Xml配置测试
|
* Xml配置测试
|
||||||
*
|
|
||||||
* @author 7IN0SAN9 <me@7in0.me>
|
* @author 7IN0SAN9 <me@7in0.me>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace think\config\driver;
|
namespace tests\thinkphp\library\think\config\driver;
|
||||||
|
|
||||||
use think\config;
|
use think\config;
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,18 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: Haotong Lin <lofanmi@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace think;
|
/**
|
||||||
|
* 配置测试
|
||||||
|
* @author Haotong Lin <lofanmi@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
use ReflectionClass;
|
use ReflectionClass;
|
||||||
|
use think\Config;
|
||||||
|
|
||||||
class configTest extends \PHPUnit_Framework_TestCase
|
class configTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,10 +6,15 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: Haotong Lin <lofanmi@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace think;
|
/**
|
||||||
|
* 控制器测试
|
||||||
|
* @author Haotong Lin <lofanmi@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
require_once CORE_PATH . '../../helper.php';
|
require_once CORE_PATH . '../../helper.php';
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,15 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: Haotong Lin <lofanmi@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace think;
|
/**
|
||||||
|
* Cookie测试
|
||||||
|
* @author Haotong Lin <lofanmi@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
use ReflectionClass;
|
use ReflectionClass;
|
||||||
|
|
||||||
|
|||||||
@@ -2,16 +2,23 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Copyright (c) 2006~2015 http://thinkphp.cn All rights reserved.
|
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: Haotong Lin <lofanmi@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 模板测试
|
||||||
|
* @author Haotong Lin <lofanmi@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace tests\thinkphp\library\think;
|
||||||
|
|
||||||
use think\Template;
|
use think\Template;
|
||||||
|
|
||||||
class TemplateTest extends \PHPUnit_Framework_TestCase
|
class templateTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testVar()
|
public function testVar()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user