修正命名空间、版权注释

This commit is contained in:
7IN0SAN9
2016-01-20 11:14:19 +08:00
parent 6120be3671
commit cc530a98a3
15 changed files with 215 additions and 156 deletions

View File

@@ -6,14 +6,19 @@
// +----------------------------------------------------------------------
// | 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
{
/**

View File

@@ -2,16 +2,23 @@
// +----------------------------------------------------------------------
// | 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 )
// +----------------------------------------------------------------------
// | 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;
class InputTest extends \PHPUnit_Framework_TestCase
class inputTest extends \PHPUnit_Framework_TestCase
{
public function testEmptyStringName()
{

View File

@@ -6,14 +6,17 @@
// +----------------------------------------------------------------------
// | 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
{
/**

View File

@@ -6,14 +6,17 @@
// +----------------------------------------------------------------------
// | 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',
'type' => '', // memcache
'namespace' => '\\think\\session\\driver\\', // ?
'auto_start' => '1'
'auto_start' => '1',
];
$_REQUEST[$config['var_session_id']] = $config['id'];
@@ -149,7 +152,7 @@ class SessionTest extends \PHPUnit_Framework_TestCase
'cache_expire' => '60',
'type' => 'memcache', //
'namespace' => '\\think\\session\\driver\\', // ?
'auto_start' => '1'
'auto_start' => '1',
];
// 测试session驱动是否存在

View File

@@ -2,17 +2,19 @@
// +----------------------------------------------------------------------
// | 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 )
// +----------------------------------------------------------------------
// | Author: mahuan <mahuan@d1web.top>
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
/**
* view测试
* @author mahuan <mahuan@d1web.top>
*/
namespace think;
namespace tests\thinkphp\library\think;
class viewTest extends \PHPUnit_Framework_TestCase
{

View File

@@ -6,10 +6,15 @@
// +----------------------------------------------------------------------
// | 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
{

View File

@@ -1,14 +1,24 @@
<?php
namespace tests\thinkphp\library\think\cache\driver;
use think\cache;
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | 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>
*/
abstract class CacheTestCase extends \PHPUnit_Framework_TestCase
namespace tests\thinkphp\library\think\cache\driver;
use think\cache;
abstract class cacheTestCase extends \PHPUnit_Framework_TestCase
{
/**

View File

@@ -8,13 +8,15 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
/**
* Apc缓存驱动测试
* @author mahuan <mahuan@d1web.top>
*/
namespace tests\thinkphp\library\think\cache\driver;
class apcTest extends CacheTestCase
class apcTest extends cacheTestCase
{
private $_cacheInstance = null;
/**

View File

@@ -13,9 +13,10 @@
* 数据库缓存驱动测试
* @author mahuan <mahuan@d1web.top>
*/
namespace tests\thinkphp\library\think\cache\driver;
class dbTest extends CacheTestCase
class dbTest extends cacheTestCase
{
private $_cacheInstance = null;

View File

@@ -11,11 +11,10 @@
/**
* Ini配置测试
*
* @author 7IN0SAN9 <me@7in0.me>
*/
namespace think\config\driver;
namespace tests\thinkphp\library\think\config\driver;
use think\config;

View File

@@ -11,11 +11,10 @@
/**
* Xml配置测试
*
* @author 7IN0SAN9 <me@7in0.me>
*/
namespace think\config\driver;
namespace tests\thinkphp\library\think\config\driver;
use think\config;

View File

@@ -6,12 +6,18 @@
// +----------------------------------------------------------------------
// | 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 think\Config;
class configTest extends \PHPUnit_Framework_TestCase
{

View File

@@ -6,10 +6,15 @@
// +----------------------------------------------------------------------
// | 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';

View File

@@ -6,10 +6,15 @@
// +----------------------------------------------------------------------
// | 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;

View File

@@ -2,16 +2,23 @@
// +----------------------------------------------------------------------
// | 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 )
// +----------------------------------------------------------------------
// | 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;
class TemplateTest extends \PHPUnit_Framework_TestCase
class templateTest extends \PHPUnit_Framework_TestCase
{
public function testVar()
{